fix(core): Fixes errors from missing files (#511)
This commit is contained in:
parent
ea5d09a7d7
commit
8006fa20df
10 changed files with 54 additions and 14 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
using Server.Json;
|
||||
|
||||
namespace Server.Gumps
|
||||
|
|
@ -23,6 +24,10 @@ namespace Server.Gumps
|
|||
try
|
||||
{
|
||||
Root = JsonConfig.Deserialize<GoCategory>(path);
|
||||
if (Root == null)
|
||||
{
|
||||
throw new JsonException($"Failed to deserialize {path}.");
|
||||
}
|
||||
SetParents(Root);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue