diff rust/hg-core/src/errors.rs @ 52313:65d516db7309

branching: merge stable into default
author Rapha?l Gom?s <rgomes@octobus.net>
date Thu, 14 Nov 2024 16:45:23 +0100
parents 7be39c5110c9 96b113d22b34
children 09a36de53b60
line wrap: on
line diff
--- a/rust/hg-core/src/errors.rs	Mon Oct 21 12:58:40 2024 +0200
+++ b/rust/hg-core/src/errors.rs	Thu Nov 14 16:45:23 2024 +0100
@@ -52,6 +52,8 @@
     RaceDetected(String),
     /// An invalid path was found
     Path(HgPathError),
+    /// An interrupt was received and we need to stop whatever we're doing
+    InterruptReceived,
 }
 
 /// Details about where an I/O error happened
@@ -125,6 +127,7 @@
                 write!(f, "encountered a race condition {context}")
             }
             HgError::Path(hg_path_error) => write!(f, "{}", hg_path_error),
+            HgError::InterruptReceived => write!(f, "interrupt received"),
         }
     }
 }