From afd243cc87827c94f0cea73748ffc5c1fdf1880a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 12 Jun 2021 20:54:28 +0100 Subject: Avoid direct use of runtime_error in PostgreSQL stuff Adds proper exception which extends it and gets the PostgreSQL error message. --- lib/output/pq/pqBindings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/output/pq/pqBindings.h') diff --git a/lib/output/pq/pqBindings.h b/lib/output/pq/pqBindings.h index c63b286..5df1a34 100644 --- a/lib/output/pq/pqBindings.h +++ b/lib/output/pq/pqBindings.h @@ -39,7 +39,7 @@ namespace MyGrate::Output::Pq { void operator()(const T &) { - throw std::runtime_error("Not implemented"); + throw std::logic_error("Not implemented"); } void operator()(const std::nullptr_t &) -- cgit v1.2.3