summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2bd472f..1c7d649 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -32,8 +32,12 @@ int main(int argc, char **argv) {
for (const auto &key : keys) {
auto row = st.execute({key});
- [[maybe_unused]]
- auto value = row.current().at(0).get_text();
+ if (row.done()) {
+ std::println(stderr, "found no value for key: {}", key);
+ return 1;
+ } else {
+ continue;
+ }
}
auto end = std::chrono::system_clock::now();