Skip to content

Commit 11e3e1c

Browse files
committed
refactor exceptions for core/lang
Signed-off-by: Hongyi Zhang <hongyi73.zhang@gmail.com>
1 parent 3013f53 commit 11e3e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/core/Lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function load($langfile, $idiom = '', $return = FALSE, $add_suffix = TRUE
150150

151151
if ($found !== TRUE)
152152
{
153-
show_error('Unable to load the requested language file: language/'.$idiom.'/'.$langfile);
153+
throw new RuntimeException('CI Error: Unable to load the requested language file: language/'.$idiom.'/'.$langfile);
154154
}
155155

156156
if ( ! isset($lang) OR ! is_array($lang))

0 commit comments

Comments
 (0)