1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-10-30 23:37:45 +02:00

Added Exception::exceptionCode() and Exception::exceptionMessage() to simplify error handling logic.

This commit is contained in:
David Steele
2017-01-27 09:56:26 -05:00
parent 6620594b77
commit f3ccf3b897
7 changed files with 47 additions and 28 deletions

View File

@@ -121,7 +121,7 @@ sub process
{
my $oException = $EVAL_ERROR;
if (isException($oException) && $oException->code() == ERROR_FILE_INVALID)
if (exceptionCode($oException) == ERROR_FILE_INVALID)
{
my $oRenderOut = $self->{oManifest}->renderOutGet(RENDER_TYPE_HTML, $strPageId);
$self->{oManifest}->cacheReset($$oRenderOut{source});