diff options
Diffstat (limited to 'resources/resource/resourcetypes.go')
-rw-r--r-- | resources/resource/resourcetypes.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/resource/resourcetypes.go b/resources/resource/resourcetypes.go index 788cdb86a..c96f3d495 100644 --- a/resources/resource/resourcetypes.go +++ b/resources/resource/resourcetypes.go @@ -37,6 +37,11 @@ type OriginProvider interface { GetFieldString(pattern string) (string, bool) } +// ErrProvider provides an Err. +type ErrProvider interface { + Err() error +} + // Resource represents a linkable resource, i.e. a content page, image etc. type Resource interface { ResourceTypeProvider @@ -45,7 +50,7 @@ type Resource interface { ResourceMetaProvider ResourceParamsProvider ResourceDataProvider - Err() error + ErrProvider } // Image represents an image resource. |