Skip to content

Commit 0aa0efa

Browse files
committed
Do not print warning for FILE_ERROR_NOT_FOUND
Close electron#4282.
1 parent 9d8e23c commit 0aa0efa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

atom/common/asar/archive.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ Archive::~Archive() {
140140

141141
bool Archive::Init() {
142142
if (!file_.IsValid()) {
143-
LOG(ERROR) << base::File::ErrorToString(file_.error_details());
143+
if (file_.error_details() != base::File::FILE_ERROR_NOT_FOUND) {
144+
LOG(WARNING) << "Opening " << path_.value()
145+
<< ": " << base::File::ErrorToString(file_.error_details());
146+
}
144147
return false;
145148
}
146149

0 commit comments

Comments
 (0)