diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php
index c0757de2d6b832c2275dd5d29bf2aaaa8c7bde09..06bd6dc0c400494674db850c20e47a06d0e6aadd 100644
--- a/htdocs/core/class/translate.class.php
+++ b/htdocs/core/class/translate.class.php
@@ -167,7 +167,7 @@ class Translate
 		if (empty($domain))
 		{
 			dol_print_error('',get_class($this)."::Load ErrorWrongParameters");
-			exit;
+			return -1;
 		}
 		if ($this->defaultlang == 'none_NONE') return 0;    // Special language code to not translate keys