Skip to content

Commit aaa5a3c

Browse files
committed
Add "Call stack:" to the log when a module load fails
1 parent 3ad00f7 commit aaa5a3c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/msf/core/module_manager/loading.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ def load_modules(path, options={})
109109

110110
count_by_type
111111
end
112-
end
112+
end

lib/msf/core/modules/loader/base.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ def load_error(module_path, error)
419419
log_lines << "#{module_path} failed to load due to the following error:"
420420
log_lines << error.class.to_s
421421
log_lines << error.to_s
422+
log_lines << "Call stack:"
422423
log_lines += error.backtrace
423424

424425
log_message = log_lines.join("\n")

0 commit comments

Comments
 (0)