Skip to content

Commit 9b9caf5

Browse files
author
梶塚太智
committed
エラー表示の改行を修正
1 parent daa1d41 commit 9b9caf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ impl Executor {
888888
"mkdir" => {
889889
let name = self.pop_stack().get_string();
890890
if let Err(e) = fs::create_dir(name) {
891-
self.log_print(format!("エラー! {e}"))
891+
self.log_print(format!("エラー! {e}\n"))
892892
}
893893
}
894894

@@ -897,11 +897,11 @@ impl Executor {
897897
let name = self.pop_stack().get_string();
898898
if Path::new(name.as_str()).is_dir() {
899899
if let Err(e) = fs::remove_dir(name) {
900-
self.log_print(format!("エラー! {e}"))
900+
self.log_print(format!("エラー! {e}\n"))
901901
}
902902
} else {
903903
if let Err(e) = fs::remove_file(name) {
904-
self.log_print(format!("エラー! {e}"))
904+
self.log_print(format!("エラー! {e}\n"))
905905
}
906906
}
907907
}

0 commit comments

Comments
 (0)