diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-16 12:18:44 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-16 12:18:44 -0700 |
commit | 149afc8c9b3bd9b4467fc686d69d83d1781b8f67 (patch) | |
tree | 60aa467371dcf20aa32634b5f2e66c9f3b52f51b /meta.go | |
parent | Add Stringer support. (diff) | |
download | dedo-149afc8c9b3bd9b4467fc686d69d83d1781b8f67.tar.gz dedo-149afc8c9b3bd9b4467fc686d69d83d1781b8f67.tar.xz |
Rename errors.
Diffstat (limited to 'meta.go')
-rw-r--r-- | meta.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,9 +16,9 @@ type meta struct { // validate checks the marker bytes and version of the meta page to ensure it matches this binary. func (m *meta) validate() error { if m.magic != magic { - return InvalidError + return ErrInvalid } else if m.version != version { - return VersionMismatchError + return ErrVersionMismatch } return nil } |