diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-09-25 11:51:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-25 11:51:54 +0200 |
| commit | dec10dd776fca2994277faa3a97b13e70317f784 (patch) | |
| tree | cea7622b2e2bb0d2cede33274807cb98b4fef856 /editor/plugins/animation_player_editor_plugin.cpp | |
| parent | de03ee94cc4df1a451c6f64e984b1da307d0f4b4 (diff) | |
| parent | 17732fe698b835c29f77c84f329b2ed6cab215ce (diff) | |
| download | redot-engine-dec10dd776fca2994277faa3a97b13e70317f784.tar.gz | |
Merge pull request #32051 from qarmin/some_error_explanation
Added some obvious errors explanations
Diffstat (limited to 'editor/plugins/animation_player_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/animation_player_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index d7451849a1..831b1434f3 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -736,8 +736,8 @@ void AnimationPlayerEditor::_dialog_action(String p_file) { ERR_FAIL_COND(!player); Ref<Resource> res = ResourceLoader::load(p_file, "Animation"); - ERR_FAIL_COND(res.is_null()); - ERR_FAIL_COND(!res->is_class("Animation")); + ERR_FAIL_COND_MSG(res.is_null(), "Cannot load Animation from file '" + p_file + "'."); + ERR_FAIL_COND_MSG(!res->is_class("Animation"), "Loaded resource from file '" + p_file + "' is not Animation."); if (p_file.find_last("/") != -1) { p_file = p_file.substr(p_file.find_last("/") + 1, p_file.length()); |
