summaryrefslogtreecommitdiffstats
path: root/internal/models/errors.go
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-10 19:22:56 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-10 19:22:56 +0000
commit58967839c646c717b5345f3a3d2924be5c6d5a4b (patch)
tree3c537852823fb90c374eae385e660b18e05a2ced /internal/models/errors.go
parent030806353ca9b329bfb0102ebc10518b641511ee (diff)
Adds the Get handler for organisation model and fixes
Also fixes the NotAuthorised response I was mistakenly getting when it should have been a 404.
Diffstat (limited to 'internal/models/errors.go')
-rw-r--r--internal/models/errors.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/models/errors.go b/internal/models/errors.go
new file mode 100644
index 0000000..a70c7dc
--- /dev/null
+++ b/internal/models/errors.go
@@ -0,0 +1,7 @@
+package models
+
+import (
+ "errors"
+)
+
+var ErrNoRecord = errors.New("models: no matching record found")