Skip to content

Commit

Permalink
Make addWebServer throw on no url
Browse files Browse the repository at this point in the history
  • Loading branch information
Windows10CE committed Aug 4, 2021
1 parent 3f8d75b commit 9d0dcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PathfinderAPI/Replacements/ContentLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d0dcbe

Please sign in to comment.