Demote error to warning when failing to open a logfile

* This means you don't hit a debugbreak and fire an exception in profile if
  you load an image file (which tries to load as a logfile first, and
  fails).
This commit is contained in:
baldurk
2014-12-11 19:18:25 +00:00
parent 31d81147af
commit 6152332e36
+1 -1
View File
@@ -184,7 +184,7 @@ Serialiser::Serialiser(size_t length, const byte *memoryBuf, bool fileheader)
char magicFile[5] = { 0 };
memcpy(magicRef, &MAGIC_HEADER, sizeof(uint32_t));
memcpy(magicFile, &header->magic, sizeof(uint32_t));
RDCERR("Invalid in-memory buffer. Expected magic %s, got %s", magicRef, magicFile);
RDCWARN("Invalid in-memory buffer. Expected magic %s, got %s", magicRef, magicFile);
m_ErrorCode = eSerError_Corrupt;
m_HasError = true;