Skip to content

Commit b0c081d

Browse files
committed
fixup! Refactored previewAction controller to improve error response (#404)
1 parent 93581cb commit b0c081d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/MVC/Symfony/Controller/Content/PreviewController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ public function previewContentAction(
134134
false
135135
);
136136
} catch (APINotFoundException $e) {
137-
$message = 'Location not found or not available in requested language';
137+
$message = sprintf( 'Location (%s) not found or not available in requested language (%s)', $location->id, $language );
138138
$this->logger->warning(
139-
'Location not found or not available in requested language when loading the preview page',
139+
sprintf( '%s %s', $message, 'when loading the preview page'),
140140
['exception' => $e]
141141
);
142142
if ($this->debugMode) {

0 commit comments

Comments
 (0)