package compiler import ( "fmt" "jinx/pkg/libs/source" ) type Error struct { Module string Loc source.Loc Err error } func (e Error) Error() string { return fmt.Sprintf("compiler error at %s:%d:%d: %v", e.Module, e.Loc.Row, e.Loc.Col, e.Err) }