Skip to content

Commit fa42914

Browse files
committed
feat(cli): Include source error in FileOperationFailed for better debugging
1 parent ffa3089 commit fa42914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/theater-cli/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub enum CliError {
6363
TemplateError { reason: String },
6464

6565
/// I/O and filesystem errors
66-
#[error("File operation failed: {operation} on {path}")]
66+
#[error("File operation failed: {operation} on {path}: {source}")]
6767
FileOperationFailed {
6868
operation: String,
6969
path: String,

0 commit comments

Comments
 (0)