From aa2e4d92e0005f4516eb591803120eff89f99109 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 7 Aug 2014 18:54:06 +0200 Subject: fs/io/BufferedReader: new class to replace class TextFile The new class is pluggable, to prepare for gzipped database files. For now, the TextFile class remains, and will be refactored away later. --- src/StateFile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/StateFile.cxx') 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; } -- cgit v1.2.3