Skip to content

Exception

Be explicit about error

diff
-abort(404);
+abort(404, "The course with the ID $courseId could not be found.");