Aleksander Machniak
2013-05-03 cfe2fc8b30e7e5c21452239a36301fdaeffdfd7d
Log spellchecker error also in html mode
2 files modified
7 ■■■■ changed files
program/steps/utils/spell.inc 2 ●●● patch | view | raw | blame | history
program/steps/utils/spell_html.inc 5 ●●●●● patch | view | raw | blame | history
program/steps/utils/spell.inc
@@ -43,7 +43,7 @@
}
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);
program/steps/utils/spell_html.inc
@@ -46,6 +46,11 @@
}
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;
}