Skip to content

Commit

Permalink
Replace deprecated print_error() with moodle_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Aug 21, 2024
1 parent 308d481 commit 3108b4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ moodle-tool_redis
Changes
-------

### Unreleased

* 2024-08-21 - Replace deprecated print_error() with moodle_exception.

### v4.2-r2

* 2024-08-11 - Add section for scheduled tasks to README
Expand Down
2 changes: 1 addition & 1 deletion lib/redis-stats/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

// Forth: If there isn't any Redis store configured, we should stop here.
if (count($servers) < 1) {
print_error('noredisstoreconfigured', 'tool_redis');
throw new moodle_exception('noredisstoreconfigured', 'tool_redis');
}

// Show a 'Flush' button for databases.
Expand Down

0 comments on commit 3108b4c

Please sign in to comment.