Skip to content

Commit a34e721

Browse files
committed
Check for load errors in reload_all
1 parent 9eda84e commit a34e721

File tree

1 file changed

+10
-0
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+10
-0
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,16 @@ def cmd_reload_all(*args)
205205
end
206206
print_status("Reloading modules from all module paths...")
207207
framework.modules.reload_modules
208+
209+
# Check for modules that failed to load
210+
if framework.modules.module_load_error_by_path.length > 0
211+
print_error("WARNING! The following modules could not be loaded!")
212+
213+
framework.modules.module_load_error_by_path.each do |path, error|
214+
print_error("\t#{path}: #{error}")
215+
end
216+
end
217+
208218
cmd_banner()
209219
end
210220

0 commit comments

Comments
 (0)