From 9d0dcbecf75bb38704aa452accea6797a5f616ed Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Wed, 4 Aug 2021 17:47:39 -0500 Subject: [PATCH] Make addWebServer throw on no url --- PathfinderAPI/Replacements/ContentLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PathfinderAPI/Replacements/ContentLoader.cs b/PathfinderAPI/Replacements/ContentLoader.cs index 41946ab2..7a0b93c3 100644 --- a/PathfinderAPI/Replacements/ContentLoader.cs +++ b/PathfinderAPI/Replacements/ContentLoader.cs @@ -502,7 +502,7 @@ static ContentLoader() comp, info.Attributes.GetString("name", "Web Server"), os, - info.Attributes.GetString("url", null) + info.Attributes.GetOrThrow("url", "addWebServer requires a url") ); webServer.registerAsDefaultBootDaemon(); comp.daemons.Add(webServer);