aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/errors.go
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2020-06-19 00:26:47 +0100
committerMichael Muré <batolettre@gmail.com>2020-06-27 23:01:09 +0200
commite5a316e40c377a8563e92f62b0773ed34321a91a (patch)
tree4788a8135201a1d3c0f05014ff1c8c2ca4060c57 /graphql/resolvers/errors.go
parent766aff2b2f9db339d7c42321fe6cd37309631be3 (diff)
downloadgit-bug-e5a316e40c377a8563e92f62b0773ed34321a91a.tar.gz
Pull out context-stuff from identity into graphqlidentity package
Diffstat (limited to 'graphql/resolvers/errors.go')
-rw-r--r--graphql/resolvers/errors.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphql/resolvers/errors.go b/graphql/resolvers/errors.go
new file mode 100644
index 00000000..2a8024e0
--- /dev/null
+++ b/graphql/resolvers/errors.go
@@ -0,0 +1,6 @@
+package resolvers
+
+import "errors"
+
+// ErrNotAuthenticated is returned to the client if the user requests an action requiring authentication, and they are not authenticated.
+var ErrNotAuthenticated = errors.New("not authenticated or read-only")