Tidy Exceptions and ensure LayerExceptions are passed a layer name.

This commit is contained in:
Mike Auty
2019-09-26 15:44:36 +01:00
parent 2acdc3e060
commit 679a0eabc2
5 changed files with 22 additions and 21 deletions
@@ -62,7 +62,7 @@ class PrintKey(interfaces.plugins.PluginInterface):
return
node = node_path[-1]
if node.vol.type_name.endswith(constants.BANG + '_CELL_DATA'):
raise RegistryFormatException("Encountered _CELL_DATA instead of _CM_KEY_NODE")
raise RegistryFormatException(hive.name, "Encountered _CELL_DATA instead of _CM_KEY_NODE")
key_path = node.get_key_path()
last_write_time = conversion.wintime_to_datetime(node.LastWriteTime.QuadPart)