X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fconditions.lisp;fp=sql%2Fconditions.lisp;h=413eae61630bbcddfaed113ad6857d61684df5b9;hp=6270f915ac945340538198ee1fccc6068a8f7d76;hb=3a3ccc7a171dc4c6c10bc7e3fea8461fca6dc51b;hpb=a56b464f5cd084bb8cc493a150b49a6033f48143 diff --git a/sql/conditions.lisp b/sql/conditions.lisp index 6270f91..413eae6 100644 --- a/sql/conditions.lisp +++ b/sql/conditions.lisp @@ -39,7 +39,7 @@ set to :error to signal an error or :ignore/nil to silently ignore the warning." :initform nil :reader sql-error-database)) (:report (lambda (c stream) - (format stream "A database error occurred: ~A / ~A~% ~A" + (format stream "A database error occurred~A: ~A / ~A~% ~A" (if (sql-error-database c) (format nil " on database ~A" (sql-error-database c)) "") @@ -93,7 +93,7 @@ set to :error to signal an error or :ignore/nil to silently ignore the warning." (defun signal-no-database-error (database) (error 'sql-database-error - :message "Not a database: ~A." database)) + :message (format nil "Not a database: ~A." database))) ;;; CLSQL Extensions