##// END OF EJS Templates
bundle2: raise a more helpful error if building a bundle part header fails...
Augie Fackler -
r34246:ab379eed default
parent child Browse files
Show More
@@ -1050,7 +1050,11 b' class bundlepart(object):'
1050 1050 header.append(key)
1051 1051 header.append(value)
1052 1052 ## finalize header
1053 headerchunk = ''.join(header)
1053 try:
1054 headerchunk = ''.join(header)
1055 except TypeError:
1056 raise TypeError(r'Found a non-bytes trying to '
1057 r'build bundle part header: %r' % header)
1054 1058 outdebug(ui, 'header chunk size: %i' % len(headerchunk))
1055 1059 yield _pack(_fpartheadersize, len(headerchunk))
1056 1060 yield headerchunk
General Comments 0
You need to be logged in to leave comments. Login now