Skip to content

Commit

Permalink
Merge pull request #865 from catalyst/print_error-deprecation-in-mood…
Browse files Browse the repository at this point in the history
…le-405

Moodle 4.5 deprecated print_error, use moodle_exception
  • Loading branch information
danmarsden authored Feb 11, 2025
2 parents 43fe445 + c0d44a5 commit 6d45115
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 6d45115

Please sign in to comment.