|  | @@ -50,11 +50,11 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 50 | 50 |   | 
                                                                                                            
                                                            | 51 | 51 |  		// If the exception is not of type ForbiddenServiceException only show a | 
                                                                                                            
                                                            | 52 | 52 |  		// generic error message to avoid leaking information. | 
                                                                                                            
                                                            | 53 |  | -		if(!($exception instanceof ForbiddenServiceException)) { | 
                                                                                                            
                                                            |  | 53 | +		if (!($exception instanceof ForbiddenServiceException)) { | 
                                                                                                            
                                                            | 54 | 54 |  			$logger->logException($exception, ['app' => 'gallery']); | 
                                                                                                            
                                                            | 55 | 55 |  			$message = sprintf('An error occurred. Request ID: %s', $request->getId()); | 
                                                                                                            
                                                            | 56 | 56 |  		} else { | 
                                                                                                            
                                                            | 57 |  | -			$message = $exception->getMessage() . ' (' . $code . ')'; | 
                                                                                                            
                                                            |  | 57 | +			$message = $exception->getMessage().' ('.$code.')'; | 
                                                                                                            
                                                            | 58 | 58 |  		} | 
                                                                                                            
                                                            | 59 | 59 |   | 
                                                                                                            
                                                            | 60 | 60 |  		return new JSONResponse( | 
                                                                                                                                                        
                                                        |  | @@ -77,7 +77,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 77 | 77 |  		$message = $exception->getMessage(); | 
                                                                                                            
                                                            | 78 | 78 |  		$code = $this->getHttpStatusCode($exception); | 
                                                                                                            
                                                            | 79 | 79 |  		$url = $urlGenerator->linkToRoute( | 
                                                                                                            
                                                            | 80 |  | -			$appName . '.page.error_page', ['code' => $code] | 
                                                                                                            
                                                            |  | 80 | +			$appName.'.page.error_page', ['code' => $code] | 
                                                                                                            
                                                            | 81 | 81 |  		); | 
                                                                                                            
                                                            | 82 | 82 |   | 
                                                                                                            
                                                            | 83 | 83 |  		$response = new RedirectResponse($url); | 
                                                                                                                                                
                                         
                                        
                                            
                                                                                                    Please login to merge, or discard this patch.