mirror of https://github.com/certusone/dc4bc.git
more informative error
This commit is contained in:
parent
42b085728f
commit
bd0e4b59ce
|
@ -106,7 +106,7 @@ func (fs *FileStorage) GetMessages(offset int) ([]Message, error) {
|
|||
}
|
||||
|
||||
if err = json.Unmarshal(row, &data); err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("failed to unmarshal a message %s: %v", string(row), err)
|
||||
}
|
||||
msgs = append(msgs, data)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue