Skip to content

Commit ad6578e

Browse files
committed
MBS-7391: Replace the deprecated print_error by moodle exception
1 parent b518566 commit ad6578e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autologin.php

Lines changed: 1 addition & 1 deletion
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)