diff rust/rhg/src/error.rs @ 52963:42f78c859dd1

branching: merge with stable
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 18 Feb 2025 22:49:43 +0100
parents bbf1c52252ae 77b95a4abbb2
children
line wrap: on
line diff
--- a/rust/rhg/src/error.rs	Tue Feb 18 16:57:50 2025 +0100
+++ b/rust/rhg/src/error.rs	Tue Feb 18 22:49:43 2025 +0100
@@ -285,6 +285,15 @@
                     exit_codes::ABORT,
                 )
             }
+            SparseConfigError::WhitespaceAtEdgeOfPattern(prefix) => {
+                Self::abort_with_exit_code_bytes(
+                    format_bytes!(
+                        b"narrow pattern with whitespace at the edge: {}",
+                        &prefix
+                    ),
+                    exit_codes::ABORT,
+                )
+            }
             SparseConfigError::IncludesInNarrow => Self::abort(
                 "including other spec files using '%include' \
                     is not supported in narrowspec",