Added error output for RuntimeError