adds verbosity to error

This commit is contained in:
Eyck-Alexander Jentzsch 2023-06-05 15:17:16 +02:00
parent a123beb301
commit 11c481cec2
3 changed files with 6 additions and 6 deletions

View File

@ -619,9 +619,9 @@ template <typename BASE, features_e FEAT> std::pair<uint64_t, bool> riscv_hart_m
}
return std::make_pair(entry, true);
}
throw std::runtime_error("memory load file is not a valid elf file");
throw std::runtime_error(fmt::format("memory load file {} is not a valid elf file",name));
}
throw std::runtime_error("memory load file not found");
throw std::runtime_error(fmt::format("memory load file not found, check if {} is a valid file", name));
}
template<typename BASE, features_e FEAT>

View File

@ -583,9 +583,9 @@ template <typename BASE> std::pair<uint64_t, bool> riscv_hart_msu_vp<BASE>::load
}
return std::make_pair(entry, true);
}
throw std::runtime_error("memory load file is not a valid elf file");
throw std::runtime_error(fmt::format("memory load file {} is not a valid elf file",name));
}
throw std::runtime_error("memory load file not found");
throw std::runtime_error(fmt::format("memory load file not found, check if {} is a valid file", name));
}
template <typename BASE>

View File

@ -689,9 +689,9 @@ template <typename BASE, features_e FEAT> std::pair<uint64_t, bool> riscv_hart_m
}
return std::make_pair(entry, true);
}
throw std::runtime_error("memory load file is not a valid elf file");
throw std::runtime_error(fmt::format("memory load file {} is not a valid elf file",name));
}
throw std::runtime_error("memory load file not found");
throw std::runtime_error(fmt::format("memory load file not found, check if {} is a valid file", name));
}
template<typename BASE, features_e FEAT>