diff --git a/simgear/io/sg_file.cxx b/simgear/io/sg_file.cxx index 9f223e34..335b17a6 100644 --- a/simgear/io/sg_file.cxx +++ b/simgear/io/sg_file.cxx @@ -82,7 +82,7 @@ std::string SGFile::computeHash() [](char* p) { free(p); }}; if (!buf) { - SG_LOG(SG_IO, SG_ALERT, "Failed to malloc buffer for SHA1 check"); + throw sg_exception("Malloc of SHA buffer failed"); } size_t readLen;