1. Jakub Wilk
  2. irssi-spellcheck

Commits

Jakub Wilk  committed 5e134a4

Improve error handling.

  • Participants
  • Parent commits b416af8
  • Branches default

Comments (0)

Files changed (1)

File spellcheck.pl

View file
     {
         $speller{$lang}->add_to_personal($word);
     }
-    $speller{$lang}->save_all_word_lists();
+    my $ok = $speller{$lang}->save_all_word_lists();
+    if (not $ok) {
+        $win->print("Error while saving $lang personal dictionary");
+    }
 }
 
 Irssi::command_bind('spellcheck_add', 'add_word');