aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/packageformat.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-09-29 10:06:23 +0200
committerGitHub Enterprise <[email protected]>2025-09-29 10:06:23 +0200
commit6e111a4018939538bb96971a17d1a553484a8471 (patch)
tree2c597a4c1adb1ac37dd9da380abff8ea548532b0 /src/zenhttp/packageformat.cpp
parentsome bug fixes (#522) (diff)
downloadzen-6e111a4018939538bb96971a17d1a553484a8471.tar.xz
zen-6e111a4018939538bb96971a17d1a553484a8471.zip
fixed ParsePackageMessage error message when mismatched header magic is detected (#521)
Diffstat (limited to 'src/zenhttp/packageformat.cpp')
-rw-r--r--src/zenhttp/packageformat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenhttp/packageformat.cpp b/src/zenhttp/packageformat.cpp
index f622b93ea..708238224 100644
--- a/src/zenhttp/packageformat.cpp
+++ b/src/zenhttp/packageformat.cpp
@@ -376,7 +376,7 @@ ParsePackageMessage(IoBuffer Payload, std::function<IoBuffer(const IoHash&, uint
if (Hdr->HeaderMagic != kCbPkgMagic)
{
throw std::invalid_argument(
- fmt::format("invalid CbPackage header magic, expected {0:x}, got {0:x}", static_cast<uint32_t>(kCbPkgMagic), Hdr->HeaderMagic));
+ fmt::format("invalid CbPackage header magic, expected {0:x}, got {1:x}", static_cast<uint32_t>(kCbPkgMagic), Hdr->HeaderMagic));
}
Reader.Skip(sizeof(CbPackageHeader));