catch editable load exception

This commit is contained in:
Vadim Lopatin 2017-09-25 13:59:23 +03:00
parent 27dc097981
commit 81b5175572
1 changed files with 2 additions and 0 deletions

View File

@ -1422,6 +1422,8 @@ class EditableContent {
}
/// load content from file
bool load(string filename) {
import std.file : exists, isFile;
import std.exception : ErrnoException;
clear();
if (!filename.exists || !filename.isFile) {
Log.e("Editable.load: File not found ", filename);