Tell use to run with `rake spec` to see Thread.new caller

MSP-11147

If the log isn't available, tell the user to rerun with `rake spec`
instead of printing nothing after the `:\n`, which looks incomplete.
bug/bundler_fix
Luke Imhoff 2014-11-06 09:10:04 -06:00
parent c1f1222783
commit 8d06189a19
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ module Metasploit
# LOG_PATHNAME may not exist if suite run without `rake spec`
if LOG_PATHNAME.exist?
log = LOG_PATHNAME.read()
else
log "Run `rake spec` to log where Thread.new is called."
end
raise RuntimeError,