summaryrefslogtreecommitdiff
path: root/internal/server
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-20 13:01:31 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit1ed2b34c3890fb4c7cd958f09b96adf3525eef55 (patch)
tree9b411db5a1e8fbc932519f0a8c775601853570a6 /internal/server
parentbca64b796e938daa427144f3f75bc8f795c1ab60 (diff)
Institute Access: Add context to set errors
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/instituteaccess.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/instituteaccess.go b/internal/server/instituteaccess.go
index a51409f..ebafb26 100644
--- a/internal/server/instituteaccess.go
+++ b/internal/server/instituteaccess.go
@@ -26,14 +26,14 @@ func (ss *Servers) SetInstituteAccess(srv Server) error {
}
if b.Type != "institute_access" {
- return errors.Errorf("not an institute access server, url: %s, type: %s", b.URL, b.Type)
+ return errors.Errorf("not an institute access server, URL: %s, type: %s", b.URL, b.Type)
}
if _, ok := ss.InstituteServers.Map[b.URL]; ok {
ss.InstituteServers.CurrentURL = b.URL
ss.IsType = InstituteAccessServerType
} else {
- return errors.Errorf("institute access server with url: %s, is not yet configured", b.URL)
+ return errors.Errorf("institute access server with URL: %s, is not yet configured", b.URL)
}
return nil
}