Skip to content

Commit f6fb009

Browse files
committed
csmock: provide more information on hook failure
Related: #117
1 parent 874b91b commit f6fb009

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/csmock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ class ScanProps:
568568
for hook in hook_list:
569569
rv = hook(*args)
570570
if rv != 0:
571-
results.error(f"{hook_name} hook failed", ec=rv)
571+
results.error(f"{hook_name} hook {hook.__module__}::{hook.__name__}() returned {rv}", ec=rv)
572572

573573

574574
class PluginManager:

0 commit comments

Comments
 (0)