diff rust/rhg/src/exitcode.rs @ 46757:b1f2c2b336ec

rhg: `cat` command: print error messages for missing files And exit with an error code if no file was matched. This matches the behavior of Python-based hg. Differential Revision: https://phab.mercurial-scm.org/D10142
author Simon Sapin <simon.sapin@octobus.net>
date Wed, 03 Mar 2021 16:40:03 +0100
parents ca3f73cc3cf4
children 821929d59e01
line wrap: on
line diff
--- a/rust/rhg/src/exitcode.rs	Mon Mar 08 19:07:29 2021 +0100
+++ b/rust/rhg/src/exitcode.rs	Wed Mar 03 16:40:03 2021 +0100
@@ -6,5 +6,8 @@
 /// Generic abort
 pub const ABORT: ExitCode = 255;
 
+/// Generic something completed but did not succeed
+pub const UNSUCCESSFUL: ExitCode = 1;
+
 /// Command or feature not implemented by rhg
 pub const UNIMPLEMENTED: ExitCode = 252;