##// END OF EJS Templates
convert: improve exception reporting for SVN logstream...
Matt Mackall -
r15750:03d04296 stable
parent child Browse files
Show More
@@ -106,11 +106,11 b' def get_log_child(fp, url, paths, start,'
106 discover_changed_paths,
106 discover_changed_paths,
107 strict_node_history,
107 strict_node_history,
108 receiver)
108 receiver)
109 except SubversionException, (inst, num):
110 pickle.dump(num, fp, protocol)
111 except IOError:
109 except IOError:
112 # Caller may interrupt the iteration
110 # Caller may interrupt the iteration
113 pickle.dump(None, fp, protocol)
111 pickle.dump(None, fp, protocol)
112 except Exception, inst:
113 pickle.dump(str(inst), fp, protocol)
114 else:
114 else:
115 pickle.dump(None, fp, protocol)
115 pickle.dump(None, fp, protocol)
116 fp.close()
116 fp.close()
@@ -145,7 +145,7 b' class logstream(object):'
145 except:
145 except:
146 if entry is None:
146 if entry is None:
147 break
147 break
148 raise SubversionException("child raised exception", entry)
148 raise util.Abort(_("log stream exception '%s'") % entry)
149 yield entry
149 yield entry
150
150
151 def close(self):
151 def close(self):
General Comments 0
You need to be logged in to leave comments. Login now