Show More
@@ -112,7 +112,10 b' def decompress(bin):' | |||||
112 | if t == '\0': |
|
112 | if t == '\0': | |
113 | return bin |
|
113 | return bin | |
114 | if t == 'x': |
|
114 | if t == 'x': | |
115 | return _decompress(bin) |
|
115 | try: | |
|
116 | return _decompress(bin) | |||
|
117 | except zlib.error, e: | |||
|
118 | raise RevlogError(_("revlog decompress error: %s") % str(e)) | |||
116 | if t == 'u': |
|
119 | if t == 'u': | |
117 | return bin[1:] |
|
120 | return bin[1:] | |
118 | raise RevlogError(_("unknown compression type %r") % t) |
|
121 | raise RevlogError(_("unknown compression type %r") % t) |
General Comments 0
You need to be logged in to leave comments.
Login now