Show More
@@ -107,6 +107,8 b' def dispatch(req):' | |||
|
107 | 107 | return -1 |
|
108 | 108 | except error.ParseError as inst: |
|
109 | 109 | _formatparse(ferr.write, inst) |
|
110 | if inst.hint: | |
|
111 | ferr.write(_("(%s)\n") % inst.hint) | |
|
110 | 112 | return -1 |
|
111 | 113 | |
|
112 | 114 | msg = ' '.join(' ' in a and repr(a) or a for a in req.args) |
@@ -202,6 +204,8 b' def _runcatch(req):' | |||
|
202 | 204 | (inst.args[0], " ".join(inst.args[1]))) |
|
203 | 205 | except error.ParseError as inst: |
|
204 | 206 | _formatparse(ui.warn, inst) |
|
207 | if inst.hint: | |
|
208 | ui.warn(_("(%s)\n") % inst.hint) | |
|
205 | 209 | return -1 |
|
206 | 210 | except error.LockHeld as inst: |
|
207 | 211 | if inst.errno == errno.ETIMEDOUT: |
@@ -81,7 +81,7 b' class ResponseExpected(Abort):' | |||
|
81 | 81 | class OutOfBandError(HintException): |
|
82 | 82 | """Exception raised when a remote repo reports failure""" |
|
83 | 83 | |
|
84 | class ParseError(Exception): | |
|
84 | class ParseError(HintException): | |
|
85 | 85 | """Raised when parsing config files and {rev,file}sets (msg[, pos])""" |
|
86 | 86 | |
|
87 | 87 | class UnknownIdentifier(ParseError): |
General Comments 0
You need to be logged in to leave comments.
Login now