develooper Front page | perl.perl6.compiler | Postings from November 2011

[perl #105006] [RFE] Avoiding a strack trace when a clearer message is possible

From:
Stephane Payrard
Date:
November 30, 2011 10:58
Subject:
[perl #105006] [RFE] Avoiding a strack trace when a clearer message is possible
Message ID:
rt-3.6.HEAD-5084-1322679513-1265.105006-82-0@perl.org
# New Ticket Created by  Stephane Payrard 
# Please include the string:  [perl #105006]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=105006 >


For example, errors triggered by non respect of the contract imposed
by the MAIN function should result in a message explaining what part
of the contract is breached. Specific example : trying to execute an
non existing Perl6 file

$ perl6 non_existing_file
Error while reading from file: Unable to open filehandle from path
'non_existing_file'
current instr.: 'nqp;HLL;Compiler;_block1987' pc 36881
(src/stage2/gen/NQPHLL.pir:13256) (src/stage2/gen/NQPHLL.pm:1452)
called from Sub 'nqp;HLL;Compiler;evalfiles' pc 36546
(src/stage2/gen/NQPHLL.pir:13101) (src/stage2/gen/NQPHLL.pm:1438)
...

-- 
cognominal stef



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About