Fixed REPL so it prints out errors.