rust/rhg/src/error.rs
changeset 49502 7c93e38a0bbd
parent 49501 9f14126cfc4c
child 49532 8076298b795a
--- a/rust/rhg/src/error.rs	Tue Jul 19 17:07:09 2022 +0200
+++ b/rust/rhg/src/error.rs	Mon Jul 25 15:39:04 2022 +0200
@@ -268,6 +268,19 @@
                     exit_codes::CONFIG_PARSE_ERROR_ABORT,
                 )
             }
+            SparseConfigError::InvalidNarrowPrefix(prefix) => {
+                Self::abort_with_exit_code_bytes(
+                    format_bytes!(
+                        b"invalid prefix on narrow pattern: {}",
+                        &prefix
+                    ),
+                    exit_codes::ABORT,
+                )
+            }
+            SparseConfigError::IncludesInNarrow => Self::abort(
+                "including other spec files using '%include' \
+                    is not supported in narrowspec",
+            ),
             SparseConfigError::HgError(e) => Self::from(e),
             SparseConfigError::PatternError(e) => {
                 Self::unsupported(format!("{}", e))