X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fconditions.lisp;h=5e805e172e11cc3464eafe0e261e92094cafec86;hb=e1b4e76f227e5896f1548789ca81112866feebb4;hp=bd36b8c0ddefdf068fb125d1fa2133538682c603;hpb=8a13e05588cb35ffeed91cca2dc26c313e387d70;p=clsql.git diff --git a/sql/conditions.lisp b/sql/conditions.lisp index bd36b8c..5e805e1 100644 --- a/sql/conditions.lisp +++ b/sql/conditions.lisp @@ -43,10 +43,8 @@ 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~% ~A" - (if (sql-error-database c) - (format nil " on database ~A" (sql-error-database c)) - "") + (format stream "A database error occurred~@[ on database ~A~]: ~A / ~A~% ~A" + (sql-error-database c) (sql-error-error-id c) (sql-error-secondary-error-id c) (sql-error-database-message c))))