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