mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-05 15:56:00 +02:00
Display error for theme file failure
This commit is contained in:
parent
269716c0d4
commit
19a2855da9
2 changed files with 9 additions and 4 deletions
|
@ -478,8 +478,11 @@ namespace IDE
|
|||
return;
|
||||
|
||||
StructuredData sd = scope .();
|
||||
if (sd.Load(themeFilePath) case .Err)
|
||||
if (sd.Load(themeFilePath) case .Err(var err))
|
||||
{
|
||||
gApp.OutputErrorLine($"Failed to load theme file '{themeFilePath}': {err}");
|
||||
return;
|
||||
}
|
||||
|
||||
using (sd.Open("Colors"))
|
||||
mColors.Deserialize(sd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue