[erlang-questions] blunt error reporting by escript

Bjorn Gustavsson bgustavsson@REDACTED
Fri Oct 17 10:41:40 CEST 2008


On Tue, Sep 9, 2008 at 4:58 PM, Ulf Wiger <ulf@REDACTED> wrote:

> I'm writing a non-trivial escript script, and am getting pretty
> frustrated with the error reporting.
>
> escript: exception error: no match of right hand side value {ok, ["..."]}
>
> My script is only 75 lines so far but has 10 different functions, and it
> would
> certainly help to at least know in which function the error occured,
> if not the line.
>
> If the script is interpreted, couldn't it give me the line number?
> I'd even forego the pretty-printing of the message in favor of some hard
> facts about where in the program the exception happened.
>

We'll try to fix this in a future release.

/Bjorn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081017/6f42d250/attachment.htm>


More information about the erlang-questions mailing list