diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-07-25 12:30:16 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-07-25 12:30:16 +0000 |
commit | fa6879593c18a12cd2a6aadfc41c385b062a8dd9 (patch) | |
tree | 6e2cb37b28d361ca46c28d39312a34d6aecccf03 /searchlib | |
parent | 59192dd1d07356497ea311b7f0d6a3b50f726f13 (diff) |
fs::exists will throw if there is any error.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/diskindex/fieldreader.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/diskindex/fieldreader.cpp b/searchlib/src/vespa/searchlib/diskindex/fieldreader.cpp index 29cf068bb31..c5f44f60dcc 100644 --- a/searchlib/src/vespa/searchlib/diskindex/fieldreader.cpp +++ b/searchlib/src/vespa/searchlib/diskindex/fieldreader.cpp @@ -5,7 +5,6 @@ #include "extposocc.h" #include "pagedict4file.h" #include "field_length_scanner.h" -#include <vespa/vespalib/util/error.h> #include <filesystem> #include <vespa/log/log.h> @@ -22,7 +21,6 @@ uint16_t cap_u16(uint32_t val) { return std::min(val, static_cast<uint32_t>(std: } -using vespalib::getLastErrorString; using search::index::FieldLengthInfo; using search::index::Schema; using search::index::SchemaUtil; @@ -128,7 +126,7 @@ FieldReader::open(const vespalib::string &prefix, vespalib::string name = prefix + "posocc.dat.compressed"; if (!fs::exists(fs::path(name))) { - LOG(error, "Compressed posocc file %s does not exist: %s", name.c_str(), getLastErrorString().c_str()); + LOG(error, "Compressed posocc file %s does not exist.", name.c_str()); return false; } |