Improve error handling
This commit is contained in:
parent
b22f224ad3
commit
cf21fd1fd8
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ func GetMeasurementJSON(sess sqlbuilder.Database, measurementID int64) (map[stri
|
|||
return nil, err
|
||||
}
|
||||
if err := json.Unmarshal(b, &msmtJSON); err != nil {
|
||||
log.Error("failed to unmarshal the measurement_json")
|
||||
log.Error("backup your OONI_HOME and run `ooniprobe reset`")
|
||||
return nil, err
|
||||
}
|
||||
return msmtJSON, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue