[ARVADOS] updated: 1.3.0-1286-gaa6dd2b23
Git user
git at public.curoverse.com
Thu Jul 11 15:06:29 UTC 2019
Summary of changes:
lib/config/load.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
via aa6dd2b23c738ebe01cdbaed86ef24ce343b29ae (commit)
from 0c894574ca46b77209127a4908844c2e0e734cea (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 aa6dd2b23c738ebe01cdbaed86ef24ce343b29ae
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Thu Jul 11 11:06:12 2019 -0400
13647: Return recognizable error when no clusters are defined.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/lib/config/load.go b/lib/config/load.go
index 58f1b029d..b3709b5bd 100644
--- a/lib/config/load.go
+++ b/lib/config/load.go
@@ -21,6 +21,8 @@ import (
"github.com/sirupsen/logrus"
)
+var ErrNoClustersDefined = errors.New("config does not define any clusters")
+
type Loader struct {
Stdin io.Reader
Logger logrus.FieldLogger
@@ -86,7 +88,7 @@ func (ldr *Loader) Load() (*arvados.Config, error) {
return nil, err
}
if len(dummy.Clusters) == 0 {
- return nil, errors.New("config does not define any clusters")
+ return nil, ErrNoClustersDefined
}
// We can't merge deep structs here; instead, we unmarshal the
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list