Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Better error reporting.

smicallef259ea3479f9f
diff --git a/sfscan.py b/sfscan.py
index 953fbcf4..e2f3a8af 100644
--- a/sfscan.py
+++ b/sfscan.py
@@ -156,8 +156,8 @@ class SpiderFootScanner:
self.status = "FINISHED"
except Exception as e:
exc_type, exc_value, exc_traceback = sys.exc_info()
- self.sf.error("Unhandled exception encountered during scan. " + \
- "Please report this as a bug: " + \
+ self.sf.error("Unhandled exception (" + e.__class__.__name__ + ") " + \
+ "encountered during scan. Please report this as a bug: " + \
repr(traceback.format_exception(exc_type, exc_value, exc_traceback)), False)
self.sf.status("Scan [" + self.config['__guid__'] + "] failed: " + str(e))
dbh.scanInstanceSet(self.config['__guid__'], None, time.time() * 1000, 'ERROR-FAILED')