mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
clean up remaining generic exceptions
This commit is contained in:
parent
21d3c16701
commit
f37d605b14
@ -239,12 +239,12 @@ def createlog(ui, directory=None, root="", rlog=True, cache=None):
|
||||
continue
|
||||
match = re_01.match(line)
|
||||
if match:
|
||||
raise Exception(match.group(1))
|
||||
raise logerror(match.group(1))
|
||||
match = re_02.match(line)
|
||||
if match:
|
||||
raise Exception(match.group(2))
|
||||
raise logerror(match.group(2))
|
||||
if re_03.match(line):
|
||||
raise Exception(line)
|
||||
raise logerror(line)
|
||||
|
||||
elif state == 1:
|
||||
# expect 'Working file' (only when using log instead of rlog)
|
||||
|
@ -112,7 +112,7 @@ def patchedsize(orig, delta):
|
||||
outlen += length
|
||||
|
||||
if bin != binend:
|
||||
raise Exception("patch cannot be decoded")
|
||||
raise ValueError("patch cannot be decoded")
|
||||
|
||||
outlen += orig - last
|
||||
return outlen
|
||||
|
Loading…
Reference in New Issue
Block a user