da009aae4f
Signed-off-by: Alejandro Mery <amery@jpi.io>
19 lines
326 B
Go
19 lines
326 B
Go
package ini
|
|
|
|
import (
|
|
"log"
|
|
|
|
"asciigoat.org/core/lexer"
|
|
)
|
|
|
|
func (*Decoder[T]) parserOnError(pos lexer.Position, content string, err error) error {
|
|
log.Printf("%s: %s %s: %q: %v", "ini", pos, "error:", content, err)
|
|
|
|
return &lexer.Error{
|
|
Line: pos.Line,
|
|
Column: pos.Column,
|
|
Content: content,
|
|
Err: err,
|
|
}
|
|
}
|