report sql errors in mode sql-runtime