From: Christian Grothoff Date: Sun, 24 Jun 2018 10:05:56 +0000 (+0200) Subject: disambiguate error messages X-Git-Tag: v0.11.0~366 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=71eef2a19df159f26c653db3aaf3e6cb89886cd4;p=oweals%2Fgnunet.git disambiguate error messages --- diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index d30b85bfc..ec91b35ad 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -761,14 +761,14 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind); * @ingroup logging * Use this for fatal errors that cannot be handled */ -#define GNUNET_assert(cond) do { if (! (cond)) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Assertion failed at %s:%d.\n"), __FILE__, __LINE__); GNUNET_abort_(); } } while(0) +#define GNUNET_assert(cond) do { if (! (cond)) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Assertion failed at %s:%d. Aborting.\n"), __FILE__, __LINE__); GNUNET_abort_(); } } while(0) /** * @ingroup logging * Use this for fatal errors that cannot be handled */ -#define GNUNET_assert_at(cond, f, l) do { if (! (cond)) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Assertion failed at %s:%d.\n"), f, l); GNUNET_abort_(); } } while(0) +#define GNUNET_assert_at(cond, f, l) do { if (! (cond)) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Assertion failed at %s:%d. Aborting.\n"), f, l); GNUNET_abort_(); } } while(0) /** @@ -778,7 +778,7 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind); * @param cond Condition to evaluate * @param comp Component string to use for logging */ -#define GNUNET_assert_from(cond, comp) do { if (! (cond)) { GNUNET_log_from(GNUNET_ERROR_TYPE_ERROR, comp, _("Assertion failed at %s:%d.\n"), __FILE__, __LINE__); GNUNET_abort_(); } } while(0) +#define GNUNET_assert_from(cond, comp) do { if (! (cond)) { GNUNET_log_from(GNUNET_ERROR_TYPE_ERROR, comp, _("Assertion failed at %s:%d. Aborting.\n"), __FILE__, __LINE__); GNUNET_abort_(); } } while(0) /**