[ARVADOS] updated: 2.1.0-1513-g3849d76f2
Git user
git at public.arvados.org
Tue Nov 2 12:20:20 UTC 2021
Summary of changes:
lib/controller/localdb/conn.go | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
via 3849d76f2cb20f57b4b7e3d42b23c81406fbca43 (commit)
from 028b760402eda5514e6b044706c124d6ca99dc48 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 3849d76f2cb20f57b4b7e3d42b23c81406fbca43
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date: Tue Nov 2 09:19:57 2021 -0300
17944: Fixes error handling on vocabulary checking.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>
diff --git a/lib/controller/localdb/conn.go b/lib/controller/localdb/conn.go
index 5690ced85..edbbcb09c 100644
--- a/lib/controller/localdb/conn.go
+++ b/lib/controller/localdb/conn.go
@@ -62,7 +62,11 @@ func (conn *Conn) checkProperties(ctx context.Context, properties interface{}) e
if err != nil {
return err
}
- return httpErrorf(http.StatusBadRequest, voc.Check(props).Error())
+ err = voc.Check(props)
+ if err != nil {
+ return httpErrorf(http.StatusBadRequest, voc.Check(props).Error())
+ }
+ return nil
}
func watchVocabulary(logger logrus.FieldLogger, vocPath string, fn func()) {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list