You've already forked pgbackrest
							
							
				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:
		| @@ -147,7 +147,7 @@ sub process | ||||
|         { | ||||
|             my $oException = $@; | ||||
|  | ||||
|             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}); | ||||
|   | ||||
| @@ -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}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user