Show More
@@ -179,6 +179,8 b' def unbundle(repo, req):' | |||||
179 | raise ErrorResponse(HTTP_OK, inst) |
|
179 | raise ErrorResponse(HTTP_OK, inst) | |
180 | except (OSError, IOError), inst: |
|
180 | except (OSError, IOError), inst: | |
181 | error = getattr(inst, 'strerror', 'Unknown error') |
|
181 | error = getattr(inst, 'strerror', 'Unknown error') | |
|
182 | if not isinstance(error, str): | |||
|
183 | error = 'Error: %s' % str(error) | |||
182 | if inst.errno == errno.ENOENT: |
|
184 | if inst.errno == errno.ENOENT: | |
183 | code = HTTP_NOT_FOUND |
|
185 | code = HTTP_NOT_FOUND | |
184 | else: |
|
186 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now