Re: crash_message() problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Juergen Luethje wrote:
> Hi all,
> 
> when I run this program ...
> 
> }}}
<eucode>
> include machine.e
> 
> crash_message("An unexpected error has occurred!"
>             & "\nPlease send the file \"ex.err\" to <john_doe at
>             whoops.com>.")
> 
> function add (atom a, atom b)
>    return a + b
> end function
> 
> ? ad(1,2)
> </eucode>
{{{

> 
> ... Euphoria prints the following error message on the screen:
> -=-=-=-=-=-=-=-=-=-=-=-=-
> C:\Desktop\test.exw:10
> ad has not been declared
> ? ad(1,2)
>     ^
> -=-=-=-=-=-=-=-=-=-=-=-=-
> (tested with exw.exe 2.4 and 2.5 alpha).
> 
> But it should print my message instead, shouldn't it?

I don't think so: crash_message is used for runtime errors.
This is a compile error.

--
The Internet combines the excitement of typing 
with the reliability of anonymous hearsay.
tommy online: http://users.telenet.be/tommycarlier
tommy.blog: http://tommycarlier.blogspot.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu