#3423: Make Pari error messages more informative
-------------------------+--------------------------------------------------
Reporter: ncalexan | Owner: was
Type: enhancement | Status: new
Priority: minor | Milestone: sage-wishlist
Component: interfaces | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by malb):
I think I tracked down why we can't display more information as of now:
The {{{pari_err}}} function contains the following code:
{{{
pari_err(long numerr, ...)
{
char s[128], *ch1;
PariOUT *out = pariOut;
va_list ap;
va_start(ap,numerr);
if (is_warn(numerr)) pari_err(talker,"use pari_warn for warnings");
global_err_data = NULL;
if (err_catch_stack)
{
cell *trapped = NULL;
if ( (trapped = err_seek(numerr)) )
{
jmp_buf *e = trapped->penv;
if (numerr == invmoder)
{
(void)va_arg(ap, char*); /* junk 1st arg */
global_err_data = (void*)va_arg(ap, GEN);
}
longjmp(*e, numerr);
}
}}}
The difference between us and gp is that {{{if (err_catch_stack)}}}
evaluates to true because all our pari calls are encapsulated in
{{{_sig_on/_sig_off}}} calls.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3423#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---