rust/rhg/src/error.rs
branchstable
changeset 49539 8076298b795a
parent 49488 7c93e38a0bbd
child 49914 58074252db3c
--- a/rust/rhg/src/error.rs	Mon Oct 31 16:15:30 2022 +0000
+++ b/rust/rhg/src/error.rs	Mon Oct 31 16:15:54 2022 +0000
@@ -221,7 +221,12 @@
 
 impl From<StatusError> for CommandError {
     fn from(error: StatusError) -> Self {
-        CommandError::abort(format!("{}", error))
+        match error {
+            StatusError::Pattern(_) => {
+                CommandError::unsupported(format!("{}", error))
+            }
+            _ => CommandError::abort(format!("{}", error)),
+        }
     }
 }