diff options
Diffstat (limited to 'base/data_pack.cc')
-rw-r--r-- | base/data_pack.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/data_pack.cc b/base/data_pack.cc index f41c6da..051fb4e 100644 --- a/base/data_pack.cc +++ b/base/data_pack.cc @@ -4,6 +4,8 @@ #include "base/data_pack.h" +#include <errno.h> + #include "base/file_util.h" #include "base/logging.h" #include "base/string_piece.h" @@ -48,8 +50,8 @@ DataPack::~DataPack() { bool DataPack::Load(const FilePath& path) { mmap_.reset(new file_util::MemoryMappedFile); if (!mmap_->Initialize(path)) { - mmap_.reset(); - return false; + CHECK(false) << "Failed to mmap " << path.value() << " errno: " << + strerror(errno); } // Parse the header of the file. |