core/api: Fix typo for undefined variable 'method'

This commit is contained in:
Brendan Coles
2022-01-22 05:55:39 +00:00
parent 9770e09d96
commit 7c4a90c51a

View File

@@ -185,7 +185,7 @@ module BeEF
return nil unless mods.length.positive?
unless verify_api_path(clss, mthd) && clss.ancestors[0].to_s > 'BeEF::API'
print_error "API Path not defined for Class: #{clss} method:#{method}"
print_error "API Path not defined for Class: #{clss} method: #{mthd}"
return []
end