diff options
Diffstat (limited to '')
-rw-r--r-- | src/StateFile.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx index 408b19426..e0f0cedb1 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -103,10 +103,10 @@ StateFile::Read() FormatDebug(state_file_domain, "Loading state file %s", path_utf8.c_str()); - TextFile file(path); + Error error; + TextFile file(path, error); if (file.HasFailed()) { - FormatErrno(state_file_domain, "failed to open %s", - path_utf8.c_str()); + LogError(error); return; } |