##// END OF EJS Templates
errors: raise InputError in fancyopts...
Martin von Zweigbergk -
r46441:2eb8ad89 default
parent child Browse files
Show More
@@ -380,7 +380,7 b' def fancyopts(args, options, state, gnu='
380 380 else:
381 381
382 382 def abort(s):
383 raise error.Abort(
383 raise error.InputError(
384 384 _(b'invalid value %r for option %s, %s')
385 385 % (pycompat.maybebytestr(val), opt, s)
386 386 )
@@ -1036,7 +1036,7 b' test -p0'
1036 1036 adding a
1037 1037 $ hg import -p foo
1038 1038 abort: invalid value 'foo' for option -p, expected int
1039 [255]
1039 [10]
1040 1040 $ hg import -p0 - << EOF
1041 1041 > foobar
1042 1042 > --- a Sat Apr 12 22:43:58 2008 -0400
General Comments 0
You need to be logged in to leave comments. Login now