From c1600cff482abf314bf66bcf758979969672bfca Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 21 Oct 2025 09:21:53 -0500 Subject: housecleaning & dump more old stuff --- errors.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'errors.go') 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{} -- cgit v1.2.3