mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fs_stat.hpp
This commit is contained in:
parent
1bc965d4a6
commit
56e6ec4eec
2 changed files with 14 additions and 0 deletions
13
src/die.hpp
Normal file
13
src/die.hpp
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue