aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/bump_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/bump_command.rs')
-rw-r--r--crates/shirabe/src/command/bump_command.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/shirabe/src/command/bump_command.rs b/crates/shirabe/src/command/bump_command.rs
index a4518b0b..51a779ef 100644
--- a/crates/shirabe/src/command/bump_command.rs
+++ b/crates/shirabe/src/command/bump_command.rs
@@ -305,10 +305,10 @@ impl BumpCommand {
let contents = match file_get_contents(json.get_path()) {
Some(c) => c,
None => {
- return Err(shirabe_php_shim::RuntimeException {
- message: format!("Unable to read {} contents.", json.get_path()),
- code: 0,
- }
+ return Err(shirabe_php_shim::RuntimeException::new(format!(
+ "Unable to read {} contents.",
+ json.get_path()
+ ))
.into());
}
};
@@ -325,10 +325,10 @@ impl BumpCommand {
match file_put_contents(json.get_path(), manipulator.get_contents().as_bytes()) {
Some(_) => Ok(true),
- None => Err(shirabe_php_shim::RuntimeException {
- message: format!("Unable to write new {} contents.", json.get_path()),
- code: 0,
- }
+ None => Err(shirabe_php_shim::RuntimeException::new(format!(
+ "Unable to write new {} contents.",
+ json.get_path()
+ ))
.into()),
}
}