Show More
@@ -241,7 +241,7 b' class shelvedstate(object):' | |||
|
241 | 241 | bin(h) for h in d[b'nodestoremove'].split(b' ') |
|
242 | 242 | ] |
|
243 | 243 | except (ValueError, TypeError, KeyError) as err: |
|
244 |
raise error.CorruptedState( |
|
|
244 | raise error.CorruptedState(stringutil.forcebytestr(err)) | |
|
245 | 245 | |
|
246 | 246 | @classmethod |
|
247 | 247 | def _getversion(cls, repo): |
@@ -250,7 +250,7 b' class shelvedstate(object):' | |||
|
250 | 250 | try: |
|
251 | 251 | version = int(fp.readline().strip()) |
|
252 | 252 | except ValueError as err: |
|
253 |
raise error.CorruptedState( |
|
|
253 | raise error.CorruptedState(stringutil.forcebytestr(err)) | |
|
254 | 254 | finally: |
|
255 | 255 | fp.close() |
|
256 | 256 | return version |
General Comments 0
You need to be logged in to leave comments.
Login now