This solves the garbled error message and optionally adds an improved specific error message, which existed in EPANET 2.1 when a network has unconnected nodes. Another similar case in was code found and corrected with the same pattern, but could not be tested.

This commit is contained in:
Alex Sinske
2020-08-05 18:43:17 +02:00
parent 80b30272cb
commit 32732dbdd5
3 changed files with 5 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ DAT(226,"no head curve or power rating for pump")
DAT(227,"invalid head curve for pump")
DAT(230,"nonincreasing x-values for curve")
DAT(233,"network has unconnected nodes")
DAT(2331,"network has an unconnected node with ID: ")
// These errors apply only to API functions
DAT(240,"nonexistent source")