mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: don't try to init mmap on missing asar (#24890)
This commit is contained in:
@@ -119,7 +119,7 @@ bool FillFileInfoWithNode(Archive::FileInfo* info,
|
||||
|
||||
Archive::Archive(const base::FilePath& path) : path_(path) {
|
||||
base::ThreadRestrictions::ScopedAllowIO allow_io;
|
||||
if (!file_.Initialize(path_)) {
|
||||
if (base::PathExists(path_) && !file_.Initialize(path_)) {
|
||||
LOG(ERROR) << "Failed to open ASAR archive at '" << path_.value() << "'";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user