From 17732fe698b835c29f77c84f329b2ed6cab215ce Mon Sep 17 00:00:00 2001 From: qarmin Date: Wed, 25 Sep 2019 10:28:50 +0200 Subject: Added some obvious errors explanations --- editor/editor_dir_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/editor_dir_dialog.cpp') diff --git a/editor/editor_dir_dialog.cpp b/editor/editor_dir_dialog.cpp index 7733ecb9da..0636ae3aea 100644 --- a/editor/editor_dir_dialog.cpp +++ b/editor/editor_dir_dialog.cpp @@ -151,7 +151,7 @@ void EditorDirDialog::_make_dir_confirm() { String dir = ti->get_metadata(0); DirAccessRef d = DirAccess::open(dir); - ERR_FAIL_COND(!d); + ERR_FAIL_COND_MSG(!d, "Cannot open directory '" + dir + "'."); Error err = d->make_dir(makedirname->get_text()); if (err != OK) { -- cgit v1.2.3