Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: immediate abort at error messages

  • To: mathgroup at smc.vnet.net
  • Subject: [mg55782] Re: [mg55764] immediate abort at error messages
  • From: Igor Antonio <igora at wolf-ram.com>
  • Date: Wed, 6 Apr 2005 03:11:11 -0400 (EDT)
  • Organization: Wolfram Research, Inc.
  • References: <200504051010.GAA01066@smc.vnet.net>
  • Reply-to: igora at wolf-ram.com
  • Sender: owner-wri-mathgroup at wolfram.com

Marcus Stollsteimer wrote:
> Hi group,
> 
> I recently learned that there is a way to immediately abort
> when an error occurs in the middle of a cell, so that Mathematica
> does not try to evaluate the subsequent expressions with
> possibly bad input:
> 
> with
> 
>   $Messages:=Abort[]
> 
> (see message <2430df44.0411240157.4d06479a at posting.google.com>)
> 
> but now, when an error occurs, Mathematica aborts without any message...
> it would be useful to still see the error message,
> is there a way to do this (display message, then abort)?
> 
> Best regards,
> Marcus
> 

Marcus,

The reason you no longer see error messages is because $Messages defines 
  where to send output and with the code above you are supressing the 
stdout.  Try using:

$Messages := (OutputStream["stdout", 1]; Abort[];)
-- 


Igor Antonio
Wolfram Research, Inc.
http://www.wolfram.com

To email me personally, remove the dash.


  • Prev by Date: Re: Re: Numerical accuracy of Hypergeometric2F1
  • Next by Date: Re: Re: Numerical accuracy of Hypergeometric2F1
  • Previous by thread: immediate abort at error messages
  • Next by thread: Re: immediate abort at error messages