fail if no urls specified

This commit is contained in:
Robert Kaussow
2019-03-18 12:08:11 +01:00
parent 7d05b3bcf6
commit 04d1e28229
+4
View File
@@ -66,6 +66,10 @@ func (p Plugin) Exec() error {
b []byte
)
if len(p.Config.URLs) == 0 {
return fmt.Errorf("You must provide at least one url")
}
if p.Config.Template == "" {
data := struct {
Repo Repo `json:"repo"`