mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-21 04:53:03 +00:00
fs_stat.hpp
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "fmt/core.h"
|
||||
|
||||
[[noreturn]]
|
||||
static
|
||||
inline
|
||||
void
|
||||
die(std::string_view msg_)
|
||||
{
|
||||
fmt::println(stderr,"FATAL: {}",msg_);
|
||||
std::abort();
|
||||
}
|
||||
@@ -97,6 +97,7 @@ namespace fs
|
||||
return rv;
|
||||
}
|
||||
|
||||
die("Should never reach this");
|
||||
return -ENOENT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user