Skip to content

Commit

Permalink
[#638 state:resolved] Fixed an issue where the MT::Boostrap was calli…
Browse files Browse the repository at this point in the history
…ng `$app->translate() to report on an error in initializing the app itself leading instead to an error message about calling translate on an undefined object, which completely masked over the actual errors.
  • Loading branch information
jayallen committed Dec 2, 2010
1 parent 0cf31c6 commit 6878fdc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/MT/Bootstrap.pm
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,8 @@ sub import {
&& ( $err =~ m/^(.+?)( at .+? line \d+)(.*)$/s ) )
{
$err = $1;
$err .= '. '
. $app->translate('Enable DebugMode for more details.');

my $dbmode = 'Enable DebugMode for more details.';
$err .= '. '.( $app ? $app->translate($dbmode) : $dbmode );
}
print "Content-Type: text/plain; charset=$charset\n\n";
print $app
Expand Down

0 comments on commit 6878fdc

Please sign in to comment.