From 8388ade86599558181729cdc95bd24a842fdfcf8 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 1 Mar 2007 16:42:36 +0000 Subject: [PATCH] Make error messages non-ambiguous. Merged from MOODLE_18_STABLE. --- lib/accesslib.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 33bed77ee9..41d3a130f3 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -726,7 +726,7 @@ function capability_search($capability, $context, $capabilities, $switchroleacti break; default: - error ('This is an unknown context!'); + error ('This is an unknown context (' . $context->contextlevel . ') in capability_search!'); return false; } @@ -2552,7 +2552,7 @@ function print_context_name($context) { break; default: - error ('This is an unknown context!'); + error ('This is an unknown context (' . $context->contextlevel . ') in print_context_name!'); return false; } @@ -2838,7 +2838,7 @@ function get_parent_contexts($context) { break; default: - error('This is an unknown context!'); + error('This is an unknown context (' . $context->contextlevel . ') in get_parent_contexts!'); return false; } } @@ -2964,7 +2964,7 @@ function get_child_contexts($context) { break; default: - error('This is an unknown context!'); + error('This is an unknown context (' . $context->contextlevel . ') in get_child_contexts!'); return false; } } @@ -3096,7 +3096,7 @@ function get_component_string($component, $contextlevel) { break; default: - error ('This is an unknown context!'); + error ('This is an unknown context $contextlevel (' . $contextlevel . ') in get_component_string!'); return false; } -- 2.39.5