Improved logging
This commit is contained in:
@@ -153,7 +153,7 @@ public class PostDbLoadService(
|
||||
foreach (var customAchievement in _databaseService.GetCustomAchievements()) {
|
||||
if (achievements.Exists((a) => a.Id == customAchievement.Id))
|
||||
{
|
||||
_logger.Warning($"Unable to add custom achievement as id: ${customAchievement.Id} already exists");
|
||||
_logger.Warning($"Unable to add custom achievement as id: {customAchievement.Id} already exists");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ public class ModValidator(
|
||||
protected bool IsModCompatibleWithSpt(PackageJsonData mod)
|
||||
{
|
||||
var sptVersion = ProgramStatics.SPT_VERSION() ?? sptConfig.SptVersion;
|
||||
var modName = $"{mod.Author}-${mod.Name}";
|
||||
var modName = $"{mod.Author}-{mod.Name}";
|
||||
|
||||
// Error and prevent loading if sptVersion property is not a valid semver string
|
||||
if (!(semVer.IsValid(mod.SptVersion) || semVer.IsValidRange(mod.SptVersion)))
|
||||
|
||||
Reference in New Issue
Block a user