about summary refs log tree commit diff
path: root/pkg/libs/source/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/libs/source/errors.go')
-rw-r--r--pkg/libs/source/errors.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/libs/source/errors.go b/pkg/libs/source/errors.go
new file mode 100644
index 0000000..cfcd9e3
--- /dev/null
+++ b/pkg/libs/source/errors.go
@@ -0,0 +1,10 @@
+package source
+
+type ErrUnexpectedChar struct {
+	Expected rune
+	Actual   rune
+}
+
+func (e ErrUnexpectedChar) Error() string {
+	return "unexpected character: expected " + string(e.Expected) + ", actual " + string(e.Actual)
+}