some error reporting for repl