Skip to content

Commit

Permalink
Added a warning when not loading the DATA_EXPAND node due to validati…
Browse files Browse the repository at this point in the history
…on errors. Partially addresses #653.
  • Loading branch information
jrossignol committed Mar 15, 2018
1 parent 6654558 commit ffe9e4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Contract Configurator 1.24.1
- Fix error message when despawning spawned Kerbals (thanks steve_v).
- Added a warning message when validation errors prevent a DATA_EXPAND node from being parsed (thanks gyf1214).

Contract Configurator 1.24.0
- Recompile for KSP 1.4.0
Expand Down
4 changes: 4 additions & 0 deletions source/ContractConfigurator/ContractType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ public bool Load(ConfigNode configNode)
{
LoggingUtil.LogWarning(this, ErrorPrefix() + ": Received an empty list of values when trying to do a DATA_EXPAND");
}
else
{
LoggingUtil.LogWarning(this, ErrorPrefix() + ": Not expanding DATA_EXPAND node as the contract had validation errors.");
}
valid = false;
break;
}
Expand Down

0 comments on commit ffe9e4e

Please sign in to comment.