Skip to content

Commit 6382601

Browse files
authored
feat(cli.js): show full error message (#3442)
1 parent 23fe8cb commit 6382601

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/cli.js-improve-error.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cli.js": patch
3+
---
4+
5+
Show full error message from `cli.rs` instead of just the outermost underlying error message.

tooling/cli/node/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn run(args: Vec<String>, bin_name: Option<String>, callback: JsFunction) ->
1515
std::thread::spawn(move || match tauri_cli::run(args, bin_name) {
1616
Ok(_) => function.call(Ok(true), ThreadsafeFunctionCallMode::Blocking),
1717
Err(e) => function.call(
18-
Err(Error::new(Status::GenericFailure, e.to_string())),
18+
Err(Error::new(Status::GenericFailure, format!("{:#}", e))),
1919
ThreadsafeFunctionCallMode::Blocking,
2020
),
2121
});

0 commit comments

Comments
 (0)