summaryrefslogtreecommitdiffhomepage
path: root/test/perl/errors_print
diff options
context:
space:
mode:
Diffstat (limited to 'test/perl/errors_print')
-rw-r--r--test/perl/errors_print/psgi.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/perl/errors_print/psgi.pl b/test/perl/errors_print/psgi.pl
new file mode 100644
index 00000000..e50ec65d
--- /dev/null
+++ b/test/perl/errors_print/psgi.pl
@@ -0,0 +1,7 @@
+my $app = sub {
+ my ($environ) = @_;
+
+ my $result = $environ->{'psgi.errors'}->print('Error in application');
+
+ return ['200', ['Content-Length' => '1'], [$result]];
+};