projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
- Tweaked the error tests to handle more verbose error output
[catagits/Catalyst-Runtime.git]
/
t
/
lib
/
Catalyst
/
Plugin
/
Test
/
Errors.pm
diff --git
a/t/lib/Catalyst/Plugin/Test/Errors.pm
b/t/lib/Catalyst/Plugin/Test/Errors.pm
index
4dc0d57
..
92fa63c
100644
(file)
--- a/
t/lib/Catalyst/Plugin/Test/Errors.pm
+++ b/
t/lib/Catalyst/Plugin/Test/Errors.pm
@@
-21,7
+21,10
@@
sub error {
$c->response->status(500);
}
- $c->response->headers->push_header( 'X-Catalyst-Error' => $_[0] );
+ my $error = $_[0];
+ $error =~ s/\n/, /g;
+
+ $c->response->headers->push_header( 'X-Catalyst-Error' => $error );
$c->NEXT::error(@_);
}