-const char *gras_error_name(gras_error_t errcode) {
-
- switch (errcode) {
-
- case no_error: return "success";
- case mismatch_error: return "mismatch";
- case system_error: return "system";
- case network_error: return "network";
- case timeout_error: return "timeout";
- case thread_error: return "thread";
- case unknown_error: return "unclassified";
- default:
- return "SEVERE ERROR in error repporting module";
- }
+/**
+ * @brief Kill the program with an error message
+ * \param msg
+ *
+ * Things are so messed up that the only thing to do now, is to stop the program.
+ *
+ * The message is handled by a CRITICAL logging request
+ *
+ * If you want to pass arguments to the format, you can always write xbt_assert1(0,"fmt",args)
+ */
+void xbt_die(const char *msg)
+{
+ CRITICAL1("%s", msg);
+ xbt_abort();