summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/errors.go b/errors.go
index 154f3af..a2f7c66 100644
--- a/errors.go
+++ b/errors.go
@@ -6,9 +6,13 @@ import (
)
var NotInitialized error = errors.New("your application config not initialized")
-
var VersionMismatch error = errors.New("your PB version does not match")
+var ErrEmpty error = fmt.Errorf("config file was empty")
+var ErrMarshal error = fmt.Errorf("protobuf parse error")
+
+// more complicated errors. good idea or bad idea?
+
// Finally, declare a package-level variable of your new type.
// This is the "sentinel" error that users will compare against.
var ErrNotInitialized = NotInitializedError{}