mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Mention explicit using original path on failures
This commit is contained in:
@@ -257,7 +257,7 @@ mate::Handle<NativeImage> NativeImage::CreateFromPath(
|
||||
gfx::ImageSkia image_skia;
|
||||
|
||||
base::FilePath absolute_path = MakeAbsoluteFilePath(path);
|
||||
// MakeAbsoluteFilePath returns an empty path on failures
|
||||
// MakeAbsoluteFilePath returns an empty path on failures so use original path
|
||||
if (absolute_path.empty()) {
|
||||
absolute_path = path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user