From e92643661a74bab9c4187c8eccce5cf939aaa9ca Mon Sep 17 00:00:00 2001 From: Andrey Derzhavin Date: Mon, 17 Feb 2025 14:48:08 +0300 Subject: [PATCH] Add brackets --- src/elf_loader.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/elf_loader.cc b/src/elf_loader.cc index fb712bb..6e192b7 100644 --- a/src/elf_loader.cc +++ b/src/elf_loader.cc @@ -7,8 +7,9 @@ namespace hsim { void ElfLoader::load(Memory &memory) { ELFIO::elfio reader{}; - if (!reader.load(m_path)) + if (!reader.load(m_path)) { throw std::invalid_argument("Bad ELF path: " + m_path.string()); + } if (reader.get_encoding() != ELFIO::ELFDATA2LSB) { throw std::runtime_error("Wrong ELF encoding");