summaryrefslogtreecommitdiffstats
path: root/vbench/src/apps/vbench/vbench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vbench/src/apps/vbench/vbench.cpp')
-rw-r--r--vbench/src/apps/vbench/vbench.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/vbench/src/apps/vbench/vbench.cpp b/vbench/src/apps/vbench/vbench.cpp
index 8e13f078b45..a2dca88f7d5 100644
--- a/vbench/src/apps/vbench/vbench.cpp
+++ b/vbench/src/apps/vbench/vbench.cpp
@@ -29,10 +29,9 @@ void setupSignals() {
}
int run(const std::string &cfg_name) {
- MappedFileInput cfg_file(cfg_name);
- if (cfg_file.tainted()) {
- fprintf(stderr, "could not load config file: %s\n",
- cfg_file.tainted().reason().c_str());
+ vespalib::MappedFileInput cfg_file(cfg_name);
+ if (!cfg_file.valid()) {
+ fprintf(stderr, "could not load config file: %s\n", cfg_name.c_str());
return 1;
}
vespalib::Slime cfg;