Skip to content

Commit

Permalink
fix(engine): fixed incomplete error messages
Browse files Browse the repository at this point in the history
if a static file couldn't be copied, they didn't tell you which file.
  • Loading branch information
arctic-hen7 committed Dec 28, 2021
1 parent 5b979bb commit e445e56
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/basic/.perseus/builder/src/bin/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ fn real_main() -> i32 {
if from.is_dir() {
if let Err(err) = copy_dir(&from, &to, &CopyOptions::new()) {
let err_msg = format!(
"Static exporting failed: 'couldn't copy static alias directory: '{}''",
"Static exporting failed: 'couldn't copy static alias directory from '{}' to '{}': '{}''",
from.to_str().map(|s| s.to_string()).unwrap(),
to,
err.to_string()
);
plugins
Expand All @@ -124,7 +126,9 @@ fn real_main() -> i32 {
}
} else if let Err(err) = fs::copy(&from, &to) {
let err_msg = format!(
"Static exporting failed: 'couldn't copy static alias file: '{}''",
"Static exporting failed: 'couldn't copy static alias file from '{}' to '{}': '{}''",
from.to_str().map(|s| s.to_string()).unwrap(),
to,
err.to_string()
);
plugins
Expand Down

0 comments on commit e445e56

Please sign in to comment.