#19622: Automatic error message when packages are not installed
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-6.10
      Component:  user interface     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/better_error_message_when__bliss__is_not_installed|  
0c5c38a6808bb7cb4df7595d3370aa204e9bcd75
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:18 jmantysalo]:
 > OK. So this is off-topic, but still: Can you tell what to modify if I
 want to play with this kind of things?
 See `PackageNotFoundError` in `src/sage/misc/package.py`.

 > As an artificial example, print "Aarghs!" after division by zero.
 That's a different question since `ZeroDivisionError` is a builtin Python
 exception which we cannot just change. That's the advantage of using a
 custom exception class for `PackageNotFoundError`: you can easily change
 the string which is displayed.

 Now, you can probably still play with IPython to customize displaying of
 exceptions in general, but then that's a very different story.

--
Ticket URL: <http://trac.sagemath.org/ticket/19622#comment:19>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to