Skip to content

Commit bf8998c

Browse files
Improve error message for incorrect component graphs (#602)
The error message did not show the cause when validations for component graphs would fail. The error message has been updated to show it now.
2 parents 7f647fa + 7915c05 commit bf8998c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frequenz/sdk/microgrid/_graph.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ def refresh_from(
491491
try:
492492
_provisional.validate()
493493
except Exception as err:
494+
_logger.error("Failed to parse component graph: %s", err)
494495
raise InvalidGraphError(
495496
"Cannot populate component graph from provided input!"
496497
) from err

0 commit comments

Comments
 (0)