Show More
@@ -927,7 +927,7 b' def lookup(repo, proto, key):' | |||
|
927 | 927 | r = c.hex() |
|
928 | 928 | success = 1 |
|
929 | 929 | except Exception as inst: |
|
930 | r = str(inst) | |
|
930 | r = util.forcebytestr(inst) | |
|
931 | 931 | success = 0 |
|
932 | 932 | return bytesresponse('%d %s\n' % (success, r)) |
|
933 | 933 | |
@@ -1055,12 +1055,13 b' def unbundle(repo, proto, heads):' | |||
|
1055 | 1055 | if exc.params: |
|
1056 | 1056 | errpart.addparam('params', '\0'.join(exc.params)) |
|
1057 | 1057 | except error.Abort as exc: |
|
1058 | manargs = [('message', str(exc))] | |
|
1058 | manargs = [('message', util.forcebytestr(exc))] | |
|
1059 | 1059 | advargs = [] |
|
1060 | 1060 | if exc.hint is not None: |
|
1061 | 1061 | advargs.append(('hint', exc.hint)) |
|
1062 | 1062 | bundler.addpart(bundle2.bundlepart('error:abort', |
|
1063 | 1063 | manargs, advargs)) |
|
1064 | 1064 | except error.PushRaced as exc: |
|
1065 |
bundler.newpart('error:pushraced', |
|
|
1065 | bundler.newpart('error:pushraced', | |
|
1066 | [('message', util.forcebytestr(exc))]) | |
|
1066 | 1067 | return streamres_legacy(gen=bundler.getchunks()) |
General Comments 0
You need to be logged in to leave comments.
Login now