make REPL print error if stack is unavailable