You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
264B

  1. /** zstreedb2 error.cxx
  2. (C) 2018 Erik Zscheile
  3. License: MIT
  4. **/
  5. #include "error.hpp"
  6. extern const char *progname;
  7. [[noreturn]]
  8. void errmsg(const int ec, const std::string &em) {
  9. fprintf(stderr, "%s: ERROR: %s\n", progname, em.c_str());
  10. exit(ec);
  11. }