Skip to content

Commit

Permalink
Bessere Fehlermeldung für backend asset streaming (#2290)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 11, 2018
1 parent 905ee77 commit 6337e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redaxo/src/core/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$assetDir = rex_path::assets();

if (strpos($fullPath, $assetDir) !== 0) {
throw new Exception('Assets can only be streamed from within the assets folder');
throw new Exception('Assets can only be streamed from within the assets folder. "'. $fullPath .'" is not within "'. $assetDir .'"');
}

$ext = rex_file::extension($assetFile);
Expand Down

0 comments on commit 6337e1e

Please sign in to comment.