diff options
-rw-r--r-- | inc/aspell.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/aspell.php b/inc/aspell.php index fe1ad9dc6..0cf519b43 100644 --- a/inc/aspell.php +++ b/inc/aspell.php @@ -219,9 +219,10 @@ class Aspell{ fclose($pipes[2]); // close process - if(proc_close($process) != 0){ + $rc = proc_close($process); + if ($err){ //something went wrong - $err = "Aspell returned an error: $err"; + $err = "Aspell returned an error(".ASPELL_BIN." exitcode: $rc ):\n".$err; return false; } return true; |