check for REPL error