diff options
Diffstat (limited to 'src/handlers/file.rs')
| -rw-r--r-- | src/handlers/file.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/handlers/file.rs b/src/handlers/file.rs index bd501e8..f816e62 100644 --- a/src/handlers/file.rs +++ b/src/handlers/file.rs @@ -36,7 +36,11 @@ pub fn load_file(model: &mut AppModel, path: PathBuf) { model.modified = false; } Err(error) => { - dialogs::show_error(&model.window, &tr!("errors.file.open"), &error.to_string()); + dialogs::show_error( + &model.window, + &tr!("Could not open file. Please make sure the file is readable."), + &error.to_string(), + ); } } } @@ -59,7 +63,11 @@ pub fn save_to_file(model: &mut AppModel, path: PathBuf, close_after: bool) { } } Err(error) => { - dialogs::show_error(&model.window, &tr!("errors.file.save"), &error.to_string()); + dialogs::show_error( + &model.window, + &tr!("Could not save file. Please make sure the destination is writable."), + &error.to_string(), + ); } } } |