126 |
|
|
127 |
my $status_line = ''; |
my $status_line = ''; |
128 |
foreach my $part ( @{ $self->status } ) { |
foreach my $part ( @{ $self->status } ) { |
129 |
|
confess "part not hash ",dump( $part ) unless ref($part) eq 'HASH'; |
130 |
foreach my $name ( keys %$part ) { |
foreach my $name ( keys %$part ) { |
131 |
my $content = $part->{$name}; |
my $content = $part->{$name}; |
132 |
if ( ref($content) ) { |
if ( ref($content) ) { |
168 |
my $self = shift; |
my $self = shift; |
169 |
my $error = join(" ", @_); |
my $error = join(" ", @_); |
170 |
my ($package, $filename, $line) = caller; |
my ($package, $filename, $line) = caller; |
171 |
$error .= " at $filename line $line"; |
$error .= " at $filename line $line" if $error !~ m{ at }; |
172 |
warn "WARN: $error\n"; |
warn "WARN: $error\n"; |
173 |
$error =~ s{at\s+(\S+)\s+line\s+(\d+)}{at <a href="/editor$1+$2" target="editor">$1</a> line $2}gsm; |
$error =~ s{at\s+(\S+)\s+line\s+(\d+)}{at <a href="/editor$1+$2" target="editor">$1</a> line $2}gsm; |
174 |
return qq|<pre class="frey-error">$error</pre>|; |
return qq|<pre class="frey-error">$error</pre>|; |