[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 20cdad6fe6 417/427: Include sqlite error code in e
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 20cdad6fe6 417/427: Include sqlite error code in error data |
Date: |
Tue, 13 Dec 2022 03:00:24 -0500 (EST) |
branch: elpa/emacsql
commit 20cdad6fe6d7ada00cd74b096fe5208e37e6ce5c
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Include sqlite error code in error data
For backward compatibility put it after the message. This means
changing the order for the `emacsql-protocol-mixin' class, but
that method isn't actually being used by any backend.
---
emacsql-sqlite.el | 2 +-
emacsql.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index 7fad320ef4..c9439918d0 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -144,7 +144,7 @@ buffer. This is for debugging purposes."
(signal
(or (cl-second (cl-assoc code emacsql-sqlite-condition-alist :test #'memql))
'emacsql-error)
- (list message)))
+ (list message code)))
;;; SQLite compilation
diff --git a/emacsql.el b/emacsql.el
index c35c6782cd..d3803727b1 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -210,7 +210,7 @@ must display as \"nil\".")
"Signal a specific condition for CODE from CONNECTION.
Subclasses should override this method in order to provide more
specific error conditions."
- (signal 'emacsql-error (list code message)))
+ (signal 'emacsql-error (list message code)))
(cl-defmethod emacsql-parse ((connection emacsql-protocol-mixin))
"Parse well-formed output into an s-expression."
- [nongnu] elpa/emacsql 1ce92a6f4a 397/427: No longer require emacsql-psql in emacsql-pg, (continued)
- [nongnu] elpa/emacsql 1ce92a6f4a 397/427: No longer require emacsql-psql in emacsql-pg, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d03c1a606f 392/427: Include optional .config.mk in Makefile, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 6622516e15 393/427: Update library headers, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b405d99aed 408/427: make: Don't use LDFLAGS to set Emacs load-path, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b907279bab 418/427: Fix docstring of emacsql-sqlite-condition-alist, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 9ee397b2be 413/427: Whitespace cosmetics, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d3d76ea72a 409/427: make: Use essentially same Makefile as for other packages I maintain, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b4d5ef41fe 410/427: make: Don't require pg.el to be available to build and test, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5818000c7d 412/427: make: Update pg repository url, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 0da3f06e89 416/427: Fix docstring typo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 20cdad6fe6 417/427: Include sqlite error code in error data,
ELPA Syncer <=
- [nongnu] elpa/emacsql 1becb00945 419/427: Define a few constants as such, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 40c41d0d97 421/427: Release version 3.1.0, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql bfbd0c3a73 422/427: Resume development, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5c4aa1030b 415/427: Do not warn about missing pg functions, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql be95788334 214/427: Use global timeout in tests., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 944de63e9d 298/427: Add functions to fix vector indentation., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e061847083 302/427: Improve emacsql-fix-vector-indentation., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3f3c36a403 341/427: Expand identifier vectors when passed as parameters (#7)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1de10e8ad4 357/427: Fix warning in emacsql-sqlite initialize-instance (#38), ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 488e7ebbb5 380/427: Change defvar to defconst for emacsql-version (fix #53), ELPA Syncer, 2022/12/13