From 1edda749bbf30b3e98b9e7506691342c6ac3ded9 Mon Sep 17 00:00:00 2001 From: vopl Date: Sat, 26 Oct 2024 16:13:13 +0300 Subject: [PATCH] throw_sqlite_error: use errmsg info for the regular exception too --- hdr/sqlite_modern_cpp/errors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdr/sqlite_modern_cpp/errors.h b/hdr/sqlite_modern_cpp/errors.h index 14501dd7..6af48d78 100644 --- a/hdr/sqlite_modern_cpp/errors.h +++ b/hdr/sqlite_modern_cpp/errors.h @@ -48,7 +48,7 @@ namespace sqlite { case SQLITE_ ## NAME: switch(error_code) { \ derived \ case SQLITE_ ## NAME: \ - default: throw name(error_code, sql); \ + default: throw name(error_code, sql, errmsg); \ } #if SQLITE_VERSION_NUMBER < 3010000