Skip to content

Commit

Permalink
Improved port already exists error message with module name (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0d3-br3ak9r authored Oct 5, 2024
1 parent 3e2d24a commit 4131bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/module.dart
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ abstract class Module {
inputs.containsKey(name) ||
inOuts.containsKey(name)) {
throw UnavailableReservedNameException.withMessage(
'Already defined a port with name "$name".');
'Already defined a port with name "$name" in module "${this.name}".');
}
}

Expand Down

0 comments on commit 4131bcd

Please sign in to comment.