X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftmpfile.cc;h=b7cb5f5e8b9c73b4de4fd97955d02252af158889;hb=921fa70d5f91d895881c19502503cd4bd4bcabde;hp=1bbacda3f8ab77ac071888cfb2968175cea60ce4;hpb=b43d7591dbe31dedd9fed41f01d07e8a3412582b;p=m6w6%2Flibmemcached diff --git a/libtest/tmpfile.cc b/libtest/tmpfile.cc index 1bbacda3..b7cb5f5e 100644 --- a/libtest/tmpfile.cc +++ b/libtest/tmpfile.cc @@ -35,7 +35,7 @@ std::string create_tmpfile(const std::string& name) int fd; if ((fd= mkstemp(file_buffer)) == -1) { - libtest::fatal(LIBYATL_DEFAULT_PARAM, "mkstemp() failed on %s with %s", file_buffer, strerror(errno)); + throw libtest::fatal(LIBYATL_DEFAULT_PARAM, "mkstemp() failed on %s with %s", file_buffer, strerror(errno)); } close(fd); unlink(file_buffer);