-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- do not override minimum CSP version if version in server_cfg is hig…
…her than extra_cfg - always print file path on config file parsing errors - improve exception messages
- Loading branch information
1 parent
794da7c
commit 4d1018b
Showing
4 changed files
with
119 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
AssettoServer/Server/Configuration/ConfigurationParsingException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
|
||
namespace AssettoServer.Server.Configuration; | ||
|
||
public class ConfigurationParsingException : Exception | ||
{ | ||
public string? Path { get; } | ||
|
||
public ConfigurationParsingException() | ||
{ | ||
} | ||
|
||
public ConfigurationParsingException(string? path, Exception? inner = null) | ||
: base($"Error parsing configuration file {path}", inner) | ||
{ | ||
Path = path; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters