Skip to content

Commit

Permalink
MBS-7391: Replace the deprecated print_error by moodle exception
Browse files Browse the repository at this point in the history
  • Loading branch information
PM84 committed Mar 2, 2023
1 parent 1992e3d commit 8d866b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autologin.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
\auth_saml2\auto_login::finish((bool)$success, new moodle_url($url));

// Something strange went wrong, or somebody tried to directly link here.
print_error('errorinvalidautologin', 'auth_saml2');
throw new \moodle_exception('errorinvalidautologin', 'auth_saml2');

0 comments on commit 8d866b6

Please sign in to comment.