Skip to content

Commit

Permalink
Improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Mar 14, 2024
1 parent d3f8eb5 commit 4981929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/typepal/Collector.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ Collector newCollector(str modelName, map[str,Tree] namedTrees, TypePalConfig co
if(logicalLoc != def.defined){
if(my_logical2physical[logicalLoc]?){
if(my_logical2physical[logicalLoc] != def.defined){
messages += error("<def.id>: <logicalLoc> has identical definitions at two locations: <my_logical2physical[logicalLoc]> and <def.defined>", def.defined);
messages += error("Remove code clone for <def.id> at <my_logical2physical[logicalLoc]> and <def.defined>", def.defined);
}
}
my_logical2physical[logicalLoc] = def.defined;
Expand Down

0 comments on commit 4981929

Please sign in to comment.