Do not print warning for FILE_ERROR_NOT_FOUND

Close #4282.
This commit is contained in:
Cheng Zhao 2016-01-30 20:48:07 +08:00
parent 9d8e23c822
commit 0aa0efa439

View file

@ -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;
}