Skip to content

Commit 2668b24

Browse files
committed
tasks: fix tests
1 parent fe2dac5 commit 2668b24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

devenv-tasks/src/task_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ impl TaskState {
240240

241241
let mut child = match result {
242242
Ok(c) => c,
243-
Err(e) => {
243+
Err(err) => {
244244
return Ok(TaskCompleted::Failed(
245245
now.elapsed(),
246246
TaskFailure {
247247
stdout: Vec::new(),
248248
stderr: Vec::new(),
249-
error: e.to_string(),
249+
error: format!("{:#}", err),
250250
},
251251
));
252252
}

devenv-tasks/src/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ async fn test_nonexistent_script() -> Result<(), Error> {
12301230
error
12311231
}
12321232
))
1233-
)] if error == "No such file or directory (os error 2)" && task_1 == "myapp:task_1"
1233+
)] if error == "Failed to spawn command for /path/to/nonexistent/script.sh: No such file or directory (os error 2)" && task_1 == "myapp:task_1"
12341234
);
12351235

12361236
Ok(())

0 commit comments

Comments
 (0)