You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Filin <fi...@bk.ru> on 2004/07/20 11:56:03 UTC

Error messages and catching output


Hi.
I have yet another question about output catching.

Let us look at this code:

[-
	# 1) Execute some file with errors in it:
	Execute('with-errors.epl');

	# 2) Execute anything, and catch output
	Execute({inputfile=>"some.epl", output=>\$out});

	# $out now contain errors from the "with-errors.epl"
-]

And no one error will be shown in browser. 
It's bad.

If I don't mistake, it's possible to say:

[- 
	Execute('with-errors.epl') -]        
	Execute({inputfile=>"some.epl", output=>\$out})
	$req=shift;  
	die if $req->Error(); 
-]

And then, ALL errors WILL be shown. 
But what if I don't want to see possible errors from the some.epl?

(Embperl 1.3.6)
---
Filin






---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org