##// END OF EJS Templates
traceback -> error message
Jonathan Taylor -
Show More
@@ -141,7 +141,7 b' class RMagics(Magics):'
141 value = ri.baseenv['eval'](ri.parse(line))
141 value = ri.baseenv['eval'](ri.parse(line))
142 except (ri.RRuntimeError, ValueError) as exception:
142 except (ri.RRuntimeError, ValueError) as exception:
143 self.flush() # otherwise next return seems to have copy of error
143 self.flush() # otherwise next return seems to have copy of error
144 raise RMagicError(unicode_to_str('parsing and evaluating line "%s". R traceback: "%s"\n' %
144 raise RMagicError(unicode_to_str('parsing and evaluating line "%s". R error message: "%s"\n' %
145 (line, str_to_unicode(exception.message, 'utf-8'))))
145 (line, str_to_unicode(exception.message, 'utf-8'))))
146 text_output = self.flush()
146 text_output = self.flush()
147 ri.set_writeconsole(old_writeconsole)
147 ri.set_writeconsole(old_writeconsole)
General Comments 0
You need to be logged in to leave comments. Login now