We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a77872 commit e8b28a9Copy full SHA for e8b28a9
src/main.rs
@@ -536,8 +536,9 @@ impl Executor {
536
"write-file" => {
537
let mut file =
538
File::create(self.pop_stack().get_string()).expect("Failed to create file");
539
- file.write_all(self.pop_stack().get_string().as_bytes())
540
- .expect("Failed to write file");
+ if let Err(e) = file.write_all(self.pop_stack().get_string().as_bytes()) {
+ self.log_print(format!("エラー! {}\n", e))
541
+ }
542
}
543
544
// ファイル読み込み
0 commit comments