From 8d866b6e136b06e0a7578994da85a898d8753e8b Mon Sep 17 00:00:00 2001 From: = Date: Thu, 2 Mar 2023 12:56:06 +0100 Subject: [PATCH] MBS-7391: Replace the deprecated print_error by moodle exception --- autologin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autologin.php b/autologin.php index a70ea4467..f6599948d 100644 --- a/autologin.php +++ b/autologin.php @@ -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');