mirror of https://github.com/buggins/dlangui.git
catch editable load exception
This commit is contained in:
parent
27dc097981
commit
81b5175572
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue