aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/package/archiver/archivable_files_finder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/package/archiver/archivable_files_finder.rs')
-rw-r--r--crates/shirabe/src/package/archiver/archivable_files_finder.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/src/package/archiver/archivable_files_finder.rs b/crates/shirabe/src/package/archiver/archivable_files_finder.rs
index ad2b41ab..f60c57f1 100644
--- a/crates/shirabe/src/package/archiver/archivable_files_finder.rs
+++ b/crates/shirabe/src/package/archiver/archivable_files_finder.rs
@@ -28,10 +28,10 @@ impl ArchivableFilesFinder {
let sources_real_path = realpath(sources);
if sources_real_path.is_none() {
- return Err(RuntimeException {
- message: format!("Could not realpath() the source directory \"{}\"", sources),
- code: 0,
- }
+ return Err(RuntimeException::new(format!(
+ "Could not realpath() the source directory \"{}\"",
+ sources
+ ))
.into());
}
let sources = fs.normalize_path(&sources_real_path.unwrap());