Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit fe8929b

Browse files
committed
just wrap into an exception to rely on rxcpp exception handling
1 parent 0b7d7c8 commit fe8929b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/influxdb-cpp-rest/influxdb_simple_async_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct influxdb::async_api::simple_db::impl {
7070
try {
7171
db.insert_async(w->str());
7272
} catch (const std::runtime_error& e) {
73-
std::cerr << "async_api::insert failed: " << e.what() << " -> Dropping " << w->size() << " bytes" << std::endl;
73+
throw std::runtime_error(std::string("async_api::insert failed: ") + e.what() + " -> Dropping " + std::to_string(w->size()) + " bytes");
7474
}
7575
}
7676
},

0 commit comments

Comments
 (0)