mirror of
https://github.com/aclindsa/ofxgo.git
synced 2024-11-13 00:50:04 -05:00
Add 'WARNING' as possible STATUS SEVERITY
This commit is contained in:
parent
27a88ca703
commit
f3b5eb5b31
@ -119,7 +119,7 @@ type Status struct {
|
|||||||
|
|
||||||
func (s *Status) Valid() (bool, error) {
|
func (s *Status) Valid() (bool, error) {
|
||||||
switch s.Severity {
|
switch s.Severity {
|
||||||
case "INFO", "WARN", "ERROR":
|
case "INFO", "WARN", "WARNING", "ERROR":
|
||||||
default:
|
default:
|
||||||
return false, errors.New("Invalid STATUS>SEVERITY")
|
return false, errors.New("Invalid STATUS>SEVERITY")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user