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:
parent
aaf2db7293
commit
a54b4199a2
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue