summaryrefslogtreecommitdiffabout
path: root/src/ellinika
authorSergey Poznyakoff <gray@gnu.org.ua>2010-03-15 20:16:21 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-03-15 20:16:21 (GMT)
commit97cb49f1c40856804ccac5925459187b4d3724bb (patch) (side-by-side diff)
treeacf3fbd4f163ccf1970d0fc61efc6801c1da0dec /src/ellinika
parent150f2f64e4e580c0d6ab75d4bee150a4369cc4f1 (diff)
downloadellinika-97cb49f1c40856804ccac5925459187b4d3724bb.tar.gz
ellinika-97cb49f1c40856804ccac5925459187b4d3724bb.tar.bz2
Update sql-error-handler definitions.
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@542 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to 'src/ellinika') (more/less context) (ignore whitespace changes)
-rw-r--r--src/ellinika/dico.scm10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ellinika/dico.scm b/src/ellinika/dico.scm
index 7c04db2..f9a6f63 100644
--- a/src/ellinika/dico.scm
+++ b/src/ellinika/dico.scm
@@ -21,20 +21,14 @@
(ice-9 rdelim)
(gamma sql)
(xmltools dict)
(ellinika xlat)
(ellinika config))
-(define (sql-error-handler err descr)
- (format #t "cannot connect to the database")
- (with-output-to-port
- (current-error-port)
- (lambda ()
- (display err)
- (display ": ")
- (display descr))))
+(define (sql-error-handler key func fmt fmtargs data)
+ (apply format (current-error-port) fmt fmtargs))
(define (my-sql-query conn query)
(catch #t
(lambda ()
(sql-query conn query))
(lambda args

Return to:

Send suggestions and report system problems to the System administrator.