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