Skip to content

Commit

Permalink
framework: script.tag: wrap original exception into TagInternalException
Browse files Browse the repository at this point in the history
Extend commit playframework/play1@c8cd95432825 ("wrap original exception
to the TagnternalException") to tags/script.tag to help debugging.
  • Loading branch information
xabolcs authored and asolntsev committed Feb 11, 2025
1 parent c708580 commit 89ed2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/tags/script.tag
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
try {
_abs = play.mvc.Router.reverseWithCheck(_src, play.Play.getVirtualFile(_src), false);
} catch (Exception ex) {
throw new play.exceptions.TagInternalException("File not found: " + _src);
throw new play.exceptions.TagInternalException("File not found: " + _src, ex);
}
}%
<script type="text/javascript" language="javascript"#{if _id} id="${_id}"#{/if}#{if _charset} charset="${_charset}"#{/if} src="${_abs}"></script>

0 comments on commit 89ed2dc

Please sign in to comment.