# HG changeset patch # User Julien Cristau # Date 1457090278 -3600 # Node ID ba952f509af69e4560f9e808a9f25559ffffc546 # Parent 0c27c0da40943d5fd4dabb717f6bfab298262aef [server] print backend exception if we fail to execute an sql script It's more useful to see could not open extension control file "/usr/share/postgresql/9.4/extension/postgis.control": No such file or directory rather than merely -> ERROR, skipping /usr/share/cubicweb/cubes/postgis/schema/_ext.postgres.sql diff -r 0c27c0da4094 -r ba952f509af6 cubicweb/server/sqlutils.py --- a/cubicweb/server/sqlutils.py Tue Mar 15 14:59:24 2016 +0100 +++ b/cubicweb/server/sqlutils.py Fri Mar 04 12:17:58 2016 +0100 @@ -97,7 +97,8 @@ try: # some dbapi modules doesn't accept unicode for sql string execute(str(sql)) - except Exception: + except Exception as ex: + print(ex, file=sys.stderr) if cnx: cnx.rollback() failed.append(sql)