From 0aa0efa43957e7324f2e8b001e6256c72a35f77d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 30 Jan 2016 20:48:07 +0800 Subject: [PATCH] Do not print warning for FILE_ERROR_NOT_FOUND Close #4282. --- atom/common/asar/archive.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atom/common/asar/archive.cc b/atom/common/asar/archive.cc index 37ff0f4..3545141 100644 --- a/atom/common/asar/archive.cc +++ b/atom/common/asar/archive.cc @@ -140,7 +140,10 @@ Archive::~Archive() { bool Archive::Init() { if (!file_.IsValid()) { - LOG(ERROR) << base::File::ErrorToString(file_.error_details()); + if (file_.error_details() != base::File::FILE_ERROR_NOT_FOUND) { + LOG(WARNING) << "Opening " << path_.value() + << ": " << base::File::ErrorToString(file_.error_details()); + } return false; } -- 2.7.4