mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
2a8395be05
When WriteFileAndSync fails, then the caller eventually logs the error message and exits. The error message returned by WriteFileAndSync already contains the path to the file, which couldn't be created. This information alongside the call stack is enough for debugging the issue. So just use log.Panicf("FATAL: ...") inside MustWriteAndSync(). This simplifies error handling at caller side a bit. |
||
---|---|---|
.. | ||
dir_remover.go | ||
fadvise_darwin.go | ||
fadvise_openbsd.go | ||
fadvise_solaris.go | ||
fadvise_unix.go | ||
fs.go | ||
fs_nix.go | ||
fs_openbsd.go | ||
fs_solaris.go | ||
fs_test.go | ||
fs_unix.go | ||
fs_windows.go | ||
reader_at.go | ||
reader_at_test.go | ||
reader_at_timing_test.go |