diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-28 16:21:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-28 16:21:34 +0000 |
commit | de30f210414a1f1f296c0cfb4406b171c1fc7b62 (patch) | |
tree | 570cc93d141bb7e250c4e73fafc53eba7d6e70bc /src/mysql/mysql.c | |
parent | 652e255add3511262060f3a13517716a72e3cb52 (diff) | |
download | gnunet-de30f210414a1f1f296c0cfb4406b171c1fc7b62.tar.gz gnunet-de30f210414a1f1f296c0cfb4406b171c1fc7b62.zip |
generally use GNUNET_assert() instead of GNUNET_abort() to also log the error
Diffstat (limited to 'src/mysql/mysql.c')
-rw-r--r-- | src/mysql/mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysql/mysql.c b/src/mysql/mysql.c index 6ee685b34..2955bcf9c 100644 --- a/src/mysql/mysql.c +++ b/src/mysql/mysql.c | |||
@@ -38,7 +38,7 @@ | |||
38 | * a failure of the command 'cmd' with the message given | 38 | * a failure of the command 'cmd' with the message given |
39 | * by strerror(errno). | 39 | * by strerror(errno). |
40 | */ | 40 | */ |
41 | #define DIE_MYSQL(cmd, dbh) do { GNUNET_log_from (GNUNET_ERROR_TYPE__ERROR, "mysql", _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, mysql_error((dbh)->dbf)); GNUNET_abort(); } while(0); | 41 | #define DIE_MYSQL(cmd, dbh) do { GNUNET_log_from (GNUNET_ERROR_TYPE__ERROR, "mysql", _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, mysql_error((dbh)->dbf)); GNUNET_assert (0); } while(0); |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * Log an error message at log-level 'level' that indicates | 44 | * Log an error message at log-level 'level' that indicates |