Request: make assert's output better

Bug #250246 reported by leppie
2
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Medium
Abdulaziz Ghuloum

Bug Description

Hi

Currently, assert gives not much info.

Would it be possible to make the 'who' give a better hint and/or source location?

Cheers

leppie

Related branches

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

It seems possible. I'll look into it.

Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
leppie (leppie) wrote :

From what I can see you could pass #f for the who, as I can then 'determine' a function name based on the current call stack. Source location would be nice :-)

Thanks

leppie

Revision history for this message
leppie (leppie) wrote :

> From what I can see you could pass #f for the who, as I can then 'determine' a function name based on the current call stack.

Ermm, my bad, that is only for syntax-violation.

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Fixed in 1562.

$ cat t.ss
(import (rnrs))
(assert #f)

$ ikarus --r6rs-script t.ss
Unhandled exception:
 Condition components:
   1. &assertion
   2. &who: assert
   3. &message: "assertion failed"
   4. &irritants: (#f)
   5. &source-information:
       file-name: "t.ss"
       character: 17

Changed in ikarus:
status: Confirmed → Fix Committed
Changed in ikarus:
milestone: none → 0.0.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.