Do not throw if the named image can not be found
This commit is contained in:
parent
ec610cd97b
commit
767a178bd1
2 changed files with 0 additions and 2 deletions
|
@ -17,7 +17,6 @@ mate::Handle<NativeImage> NativeImage::CreateFromNamedImage(
|
|||
@autoreleasepool {
|
||||
NSImage* image = [NSImage imageNamed:base::SysUTF8ToNSString(name)];
|
||||
if (!image.valid) {
|
||||
args->ThrowError("Cannot create image from name: " + name);
|
||||
return CreateEmpty(args->isolate());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue