summaryrefslogtreecommitdiff
path: root/sql/derror.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/derror.cc')
-rw-r--r--sql/derror.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/derror.cc b/sql/derror.cc
index 318800ea262..31634383d1c 100644
--- a/sql/derror.cc
+++ b/sql/derror.cc
@@ -84,8 +84,9 @@ bool init_errmessage(void)
if (!use_english)
{
/* Read messages from file. */
- use_english= !read_texts(ERRMSG_FILE,lang, &original_error_messages);
- error= TRUE;
+ error= use_english= read_texts(ERRMSG_FILE,lang, &original_error_messages);
+ if(error)
+ sql_print_error("Could not load error messages for %s",lang);
}
if (use_english)