From c7aca54dc4a5733a2759e920174024ea552c2b7b 2012-06-03 06:16:06 From: Jonathan Taylor Date: 2012-06-03 06:16:06 Subject: [PATCH] traceback -> error message --- diff --git a/IPython/extensions/rmagic.py b/IPython/extensions/rmagic.py index 829ed32..c21331a 100644 --- a/IPython/extensions/rmagic.py +++ b/IPython/extensions/rmagic.py @@ -141,7 +141,7 @@ class RMagics(Magics): value = ri.baseenv['eval'](ri.parse(line)) except (ri.RRuntimeError, ValueError) as exception: self.flush() # otherwise next return seems to have copy of error - raise RMagicError(unicode_to_str('parsing and evaluating line "%s". R traceback: "%s"\n' % + raise RMagicError(unicode_to_str('parsing and evaluating line "%s". R error message: "%s"\n' % (line, str_to_unicode(exception.message, 'utf-8')))) text_output = self.flush() ri.set_writeconsole(old_writeconsole)