1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +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
import (
"fmt"
"os"
"strings"
@ -50,7 +51,7 @@ func (t *tlp) UnmarshalText(text []byte) error {
*t = s
return nil
}
return nil
return fmt.Errorf("invalid config TLP value: %v", string(text))
}
func (cfg *config) GetPGPURL(key string) string {