diff --git a/loglist/load.go b/loglist/load.go index 75b59dc..c3e7ef2 100644 --- a/loglist/load.go +++ b/loglist/load.go @@ -54,5 +54,8 @@ func unmarshal(jsonBytes []byte) (*List, error) { if err := json.Unmarshal(jsonBytes, list); err != nil { return nil, err } + if err := list.Validate(); err != nil { + return nil, fmt.Errorf("Invalid log list: %s", err) + } return list, nil }