Update compiler

This commit is contained in:
Sasha Koshka 2024-03-14 03:20:55 -04:00
parent 6be48aea28
commit babcce643f
1 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ func (this *Compiler) AnalyzeModule (
newNickname, ok := dependency.Address.Nickname()
if !ok {
return uuid.UUID { }, ferrors.Errorf (
dependency.Position,
dependency.Position(),
"cannot generate nickname for %v, " +
"please add one after the address",
dependency.Address)
@ -97,9 +97,9 @@ func (this *Compiler) AnalyzeModule (
}
if previous, exists := dependencies[nickname]; exists {
return uuid.UUID { }, ferrors.Errorf (
dependency.Position,
dependency.Position(),
"unit with nickname %v already listed at %v",
nickname, previous.Position)
nickname, previous.Position())
}
dependencies[nickname] = dependency
}