MDL-78917 webservice: extra data in exception for missing classpath.

Include the external function classname & methodname properties in
the thrown exception, to aid diagnostic.
This commit is contained in:
Paul Holden
2023-08-31 14:15:17 +01:00
parent 9bfcd77d51
commit 17dae8a036
+2 -1
View File
@@ -67,7 +67,8 @@ class external_api {
}
if (!file_exists($function->classpath)) {
throw new coding_exception(
"Cannot find file {$function->classpath} with external function implementation"
"Cannot find file {$function->classpath} with external function implementation " .
"for {$function->classname}::{$function->methodname}"
);
}
require_once($function->classpath);