aboutsummaryrefslogtreecommitdiff
path: root/zenstore/caslog.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 15:23:47 +0200
committerStefan Boberg <[email protected]>2021-09-15 15:23:47 +0200
commitf34aa060d7da16d4e08644cf8572db979f3ea8d0 (patch)
treec7c5e5f961c971e2c8e93f542241c7817aa9e3fb /zenstore/caslog.cpp
parentMade logging macros always append `sv` string_view literal suffix (diff)
downloadzen-f34aa060d7da16d4e08644cf8572db979f3ea8d0.tar.xz
zen-f34aa060d7da16d4e08644cf8572db979f3ea8d0.zip
Changed `std::exception` into `std::runtime_error` since `std::exception` does not have a constructor which accepts a string argument in the standard (this appears to be an MSVC implementation thing)
Diffstat (limited to 'zenstore/caslog.cpp')
-rw-r--r--zenstore/caslog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenstore/caslog.cpp b/zenstore/caslog.cpp
index 34860538a..70bcf4669 100644
--- a/zenstore/caslog.cpp
+++ b/zenstore/caslog.cpp
@@ -81,7 +81,7 @@ CasLogFile::Open(std::filesystem::path FileName, size_t RecordSize, bool IsCreat
if ((0 != memcmp(Header.Magic, FileHeader::MagicSequence, sizeof Header.Magic)) || (Header.Checksum != Header.ComputeChecksum()))
{
// TODO: provide more context!
- throw std::exception("Mangled log header");
+ throw std::runtime_error("Mangled log header");
}
ULONGLONG Sz;