From 22d1fe0cbc75bdd94ce81b46848696cbb5a040e5 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Wed, 3 Sep 2014 19:14:32 +0200 Subject: [PATCH] Error messages --HG-- branch : dfighter-tools --- .../src/plugins/georges_editor/georges_editor_form.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/studio/src/plugins/georges_editor/georges_editor_form.cpp b/code/studio/src/plugins/georges_editor/georges_editor_form.cpp index e5136e82f..3bcbb91dc 100644 --- a/code/studio/src/plugins/georges_editor/georges_editor_form.cpp +++ b/code/studio/src/plugins/georges_editor/georges_editor_form.cpp @@ -209,7 +209,12 @@ namespace GeorgesQt { std::string path = NLMISC::CPath::lookup( fileName.toUtf8().constData(), false ); if( path.empty() ) + { + QMessageBox::information( this, + tr( "Failed to load file..." ), + tr( "Failed to load file '%1': File doesn't exist!" ).arg( fileName ) ); return; + } QFileInfo info( path.c_str() ); @@ -246,7 +251,7 @@ namespace GeorgesQt { QMessageBox::information( this, tr( "Failed to load file..." ), - tr( "Failed to load file '%1'" ).arg( info.fileName() ) ); + tr( "Failed to load file '%1': Not a typ, dfn, or form file!" ).arg( info.fileName() ) ); return; }