aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/archive_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/archive_command.rs')
-rw-r--r--crates/shirabe/src/command/archive_command.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/crates/shirabe/src/command/archive_command.rs b/crates/shirabe/src/command/archive_command.rs
index e749d13f..1c428c58 100644
--- a/crates/shirabe/src/command/archive_command.rs
+++ b/crates/shirabe/src/command/archive_command.rs
@@ -303,13 +303,10 @@ impl ArchiveCommand {
};
let Some(complete) = package.as_complete() else {
- return Err(LogicException {
- message: format!(
- "Expected a CompletePackageInterface instance but found {}",
- get_debug_type(&shirabe_php_shim::PhpMixed::Null)
- ),
- code: 0,
- }
+ return Err(LogicException::new(format!(
+ "Expected a CompletePackageInterface instance but found {}",
+ get_debug_type(&shirabe_php_shim::PhpMixed::Null)
+ ))
.into());
};