mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-03 14:54:01 +01:00
Log spellchecker error also in html mode
This commit is contained in:
@@ -43,7 +43,7 @@ else {
|
||||
}
|
||||
|
||||
if ($err = $spellchecker->error()) {
|
||||
raise_error(array('code' => 500, 'type' => 'php',
|
||||
rcube::raise_error(array('code' => 500, 'type' => 'php',
|
||||
'file' => __FILE__, 'line' => __LINE__,
|
||||
'message' => sprintf("Spell check engine error: " . $err)),
|
||||
true, false);
|
||||
|
||||
@@ -46,6 +46,11 @@ else if ($request['method'] == 'learnWord') {
|
||||
}
|
||||
|
||||
if ($error = $spellchecker->error()) {
|
||||
rcube::raise_error(array('code' => 500, 'type' => 'php',
|
||||
'file' => __FILE__, 'line' => __LINE__,
|
||||
'message' => sprintf("Spell check engine error: " . $error)),
|
||||
true, false);
|
||||
|
||||
echo '{"error":{"errstr":"' . addslashes($error) . '","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}';
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user