X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftmpfile.cc;h=b7cb5f5e8b9c73b4de4fd97955d02252af158889;hb=8853fb2dda92e1c9921893c42efd48bcd72afaf9;hp=1bbacda3f8ab77ac071888cfb2968175cea60ce4;hpb=93dec285cdb4aab2bff0bae0d50e033b69560181;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);