Skip to content

Commit 6d45115

Browse files
authored
Merge pull request #865 from catalyst/print_error-deprecation-in-moodle-405
Moodle 4.5 deprecated print_error, use moodle_exception
2 parents 43fe445 + c0d44a5 commit 6d45115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autologin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
\auth_saml2\auto_login::finish((bool)$success, new moodle_url($url));
3232

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

0 commit comments

Comments
 (0)