mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-25 07:32:23 +02:00
Don't show errors if there are none.
This commit is contained in:
@@ -126,8 +126,9 @@ class CommandLine(interfaces.plugins.FileConsumerInterface):
|
||||
ctx = contexts.Context() # Construct a blank context
|
||||
failures = framework.import_files(volatility.plugins,
|
||||
True) # Will not log as console's default level is WARNING
|
||||
parser.epilog = "The following plugins could not be loaded (use -vv to see why): " + ", ".join(failures)
|
||||
vollog.info(parser.epilog)
|
||||
if failures:
|
||||
parser.epilog = "The following plugins could not be loaded (use -vv to see why): " + ", ".join(failures)
|
||||
vollog.info(parser.epilog)
|
||||
automagics = automagic.available(ctx)
|
||||
|
||||
plugin_list = framework.list_plugins()
|
||||
|
||||
@@ -95,7 +95,9 @@ class VolShell(cli.CommandLine):
|
||||
ctx = contexts.Context() # Construct a blank context
|
||||
failures = framework.import_files(volatility.plugins,
|
||||
True) # Will not log as console's default level is WARNING
|
||||
vollog.info("Plugins could not be loaded: " + ", ".join(failures))
|
||||
if failures:
|
||||
parser.epilog = "The following plugins could not be loaded (use -vv to see why): " + ", ".join(failures)
|
||||
vollog.info(parser.epilog)
|
||||
automagics = automagic.available(ctx)
|
||||
|
||||
# Initialize the list of plugins in case volshell needs it
|
||||
|
||||
Reference in New Issue
Block a user