1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Fixed error handling of TLPs in config of provider.

This commit is contained in:
Sascha L. Teichmann 2021-11-26 17:25:15 +01:00
parent aaf2db7293
commit a54b4199a2

View file

@ -1,6 +1,7 @@
package main package main
import ( import (
"fmt"
"os" "os"
"strings" "strings"
@ -50,7 +51,7 @@ func (t *tlp) UnmarshalText(text []byte) error {
*t = s *t = s
return nil return nil
} }
return nil return fmt.Errorf("invalid config TLP value: %v", string(text))
} }
func (cfg *config) GetPGPURL(key string) string { func (cfg *config) GetPGPURL(key string) string {