print an error when an unknown mode was given

tags: relevant