mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-26 14:00:51 +00:00
cli: propagate WorkspaceLoadError::Path error transparently
The inner error message is now printed by default.
This commit is contained in:
parent
9adf6e1303
commit
28dd0180ad
1 changed files with 1 additions and 3 deletions
|
@ -1901,9 +1901,6 @@ jj init --git-repo=.",
|
|||
"The repository directory at {} is missing. Was it moved?",
|
||||
repo_dir.display(),
|
||||
)),
|
||||
// TODO: Record the error as a chained cause
|
||||
WorkspaceLoadError::Path(e) => user_error(format!("{}: {}", e, e.error)),
|
||||
WorkspaceLoadError::NonUnicodePath => user_error(err),
|
||||
WorkspaceLoadError::StoreLoadError(err @ StoreLoadError::UnsupportedType { .. }) => {
|
||||
internal_error_with_message(
|
||||
"This version of the jj binary doesn't support this type of repo",
|
||||
|
@ -1917,6 +1914,7 @@ jj init --git-repo=.",
|
|||
err @ SignInitError::UnknownBackend(_),
|
||||
)) => user_error(err),
|
||||
WorkspaceLoadError::StoreLoadError(err) => internal_error(err),
|
||||
WorkspaceLoadError::NonUnicodePath | WorkspaceLoadError::Path(_) => user_error(err),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue