Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bessere Fehlermeldung für backend asset streaming #2290

Merged
merged 1 commit into from Dec 11, 2018
Merged

Conversation

staabm
Copy link
Member

@staabm staabm commented Dec 11, 2018

No description provided.

@staabm staabm merged commit 6337e1e into master Dec 11, 2018
@delete-merged-branch delete-merged-branch bot deleted the staabm-patch-1 branch December 11, 2018 11:41
@@ -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 .'"');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw new Exception('Assets can only be streamed from within the assets folder. "'. $fullPath .'" is not within "'. $assetDir .'"');
throw new Exception('Assets can only be streamed from within the assets folder. "'. $fullPath .'" is not within "'. $assetDir .'".');

Copy link
Member Author

@staabm staabm Dec 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, 2 sekunden zu spät :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toll, da verwende ich zum ersten Mal die Funktion, und dann sowas.. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants