summaryrefslogtreecommitdiff
path: root/view/pe/peview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/pe/peview.cpp')
-rw-r--r--view/pe/peview.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/view/pe/peview.cpp b/view/pe/peview.cpp
index f0c43056..77c52da8 100644
--- a/view/pe/peview.cpp
+++ b/view/pe/peview.cpp
@@ -640,6 +640,10 @@ bool PEView::Init()
m_logger->LogError("PE architecture '0x%x' is not supported", header.machine);
break;
}
+
+ if (!m_parseOnly)
+ m_logger->LogWarn("Unable to determine architecture. Please open the file with options and select a valid architecture.");
+
return false;
}
@@ -3086,8 +3090,8 @@ Ref<Settings> PEViewType::GetLoadSettingsForData(BinaryView* data)
Ref<BinaryView> viewRef = Parse(data);
if (!viewRef || !viewRef->Init())
{
- m_logger->LogError("View type '%s' could not be created", GetName().c_str());
- return nullptr;
+ m_logger->LogWarn("Failed to initialize view of type '%s'. Generating default load settings.", GetName().c_str());
+ viewRef = data;
}
Ref<Settings> settings = GetDefaultLoadSettingsForData(viewRef);