Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable thread: improve HTTP error messages

Changeset 2275cf18a744

Parent 42facdb23bf9

by Steve Borho

Changes to one file · Browse files at 2275cf18a744 Showing diff from parent 42facdb23bf9 Diff from another changeset...

 
278
279
280
281
 
282
 
 
 
283
284
285
 
278
279
280
 
281
282
283
284
285
286
287
288
@@ -278,8 +278,11 @@
  ui.write_err(local._('abort: ') + str(e) + '\n')   if e.hint:   ui.write_err(local._('hint: ') + str(e.hint) + '\n') - except (error.RepoError, urllib2.HTTPError), e: + except error.RepoError, e:   ui.write_err(str(e) + '\n') + except urllib2.HTTPError, e: + err = local._('HTTP Error: %d (%s)') % (e.code, e.msg) + ui.write_err(err + '\n')   except urllib2.URLError, e:   import ssl   err = local._('URLError: %s') % str(e.reason)