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:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user