Skip to content

Commit

Permalink
Improved port already exists error message with module name
Browse files Browse the repository at this point in the history
  • Loading branch information
c0d3-br3ak9r committed Oct 5, 2024
1 parent 3e2d24a commit 05fd581
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 05fd581

Please sign in to comment.