comparison mercurial/scmutil.py @ 46116:17a695357270

errors: use detailed exit code 50 for StorageError This is done as part of https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. Differential Revision: https://phab.mercurial-scm.org/D9601
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 09 Dec 2020 19:40:30 -0800
parents be3d8178251e
children cb12658bf0e1
comparison
equal deleted inserted replaced
46115:be3d8178251e 46116:17a695357270
211 ui.error(_(b"abort: file censored %s\n") % inst) 211 ui.error(_(b"abort: file censored %s\n") % inst)
212 except error.StorageError as inst: 212 except error.StorageError as inst:
213 ui.error(_(b"abort: %s\n") % inst) 213 ui.error(_(b"abort: %s\n") % inst)
214 if inst.hint: 214 if inst.hint:
215 ui.error(_(b"(%s)\n") % inst.hint) 215 ui.error(_(b"(%s)\n") % inst.hint)
216 detailed_exit_code = 50
216 except error.InterventionRequired as inst: 217 except error.InterventionRequired as inst:
217 ui.error(b"%s\n" % inst) 218 ui.error(b"%s\n" % inst)
218 if inst.hint: 219 if inst.hint:
219 ui.error(_(b"(%s)\n") % inst.hint) 220 ui.error(_(b"(%s)\n") % inst.hint)
220 detailed_exit_code = 240 221 detailed_exit_code = 240