feat(errors): preserve jj-emitted errors when loading config

This commit is contained in:
2026-03-31 16:35:38 +02:00
parent a88f839798
commit 518d2916b9
4 changed files with 19 additions and 11 deletions

View File

@@ -18,8 +18,8 @@ pub enum Error {
RepositoryLocked,
#[error("Could not get current directory")]
FailedGettingCurrentDir,
#[error("Could not load Jujutsu configuration")]
FailedReadingConfig,
#[error("Could not load Jujutsu configuration: {context}")]
FailedReadingConfig { context: String },
// Application errors
#[error("Operation cancelled by user")]
Cancelled,