Skip to content

Commit 2432432

Browse files
author
梶塚太智
committed
コマンドopenにエラー処理を追加
1 parent 12e504c commit 2432432

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,9 @@ impl Executor {
881881

882882
// ファイルを開く
883883
"open" => {
884-
let _result = opener::open(self.pop_stack().get_string());
884+
if let Err(e) = opener::open(self.pop_stack().get_string()) {
885+
self.log_print(format!("エラー! {e}\n"))
886+
}
885887
}
886888

887889
//カレントディレクトリを変更

0 commit comments

Comments
 (0)