Skip to content

Commit 14bd483

Browse files
authored
Merge pull request #57 from ByteInternet/correct-error-message
Correct a few error messages.
2 parents 11dedfc + 74bfbff commit 14bd483

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sshpubkeys/keys.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,15 @@ def parse_add_single_option(opt):
262262
opt_name = opt
263263
opt_value = True
264264
if " " in opt_name or not self.OPTION_NAME_RE.match(opt_name):
265-
raise InvalidOptionNameError("%s is not valid option name." % opt_name)
265+
raise InvalidOptionNameError("%s is not a valid option name." % opt_name)
266266
if self.strict_mode:
267267
for valid_opt_name, value_required in self.OPTIONS_SPEC:
268268
if opt_name.lower() == valid_opt_name:
269269
if value_required and opt_value is True:
270-
raise MissingMandatoryOptionValueError("%s is missing mandatory value." % opt_name)
270+
raise MissingMandatoryOptionValueError("%s is missing a mandatory value." % opt_name)
271271
break
272272
else:
273-
raise UnknownOptionNameError("%s is unrecognized option name." % opt_name)
273+
raise UnknownOptionNameError("%s is an unrecognized option name." % opt_name)
274274
if opt_name not in parsed_options:
275275
parsed_options[opt_name] = []
276276
parsed_options[opt_name].append(opt_value)

0 commit comments

Comments
 (0)