[e-lang] Patch for review: don't report errors twice

Thomas Leonard tal at it-innovation.soton.ac.uk
Mon Sep 19 02:24:58 PDT 2011


Simple patch to fix E error reporting:

http://gitorious.org/~tal-itinnov/repo-roscidus/it-innovation/commit/c9a58031350e65d0b721f9b865dba821327703ba

Without the patch exceptions get reported twice:

$ cat test.e
foo
$ rune test.e
# problem: Failed: Undefined variable: foo
#
#   @ </home/tal/tmp/test.e#:span::1:0::1:2>
#   - EExpr#evalToPair(Scope)
#   . e`foo`.evalToPair(<a Scope>)
#   @ evalToPair/1: 
<jar:file:/opt/src/e/dist/e.jar!/org/erights/e/elang/cmd/cmdMakerMaker.emaker#:span::128:57::128:66>

# problem: Failed: Undefined variable: foo
#
#   @ </home/tal/tmp/test.e#:span::1:0::1:2>
#   - EExpr#evalToPair(Scope)
#   . e`foo`.evalToPair(<a Scope>)
#   @ evalToPair/1: 
<jar:file:/opt/src/e/dist/e.jar!/org/erights/e/elang/cmd/cmdMakerMaker.emaker#:span::128:57::128:66>
#   - static Ref#fulfillment(Object)
#   . <makeRef>.fulfillment(<ref broken by problem: Failed: Undefined 
variable: foo>)
#   @ fulfillment/1


-- 
Dr Thomas Leonard
IT Innovation Centre
Gamma House, Enterprise Road,
Southampton SO16 7NS, UK


tel: +44 23 8059 8866

mailto:tal at it-innovation.soton.ac.uk
http://www.it-innovation.soton.ac.uk/


More information about the e-lang mailing list