Don't discard result of errors.New.

This commit is contained in:
Kyle Isom
2015-07-20 15:52:24 -07:00
parent 03a92365ba
commit 9ae97534ff

View File

@@ -269,7 +269,7 @@ func Delegate(jsonIn []byte) ([]byte, error) {
}
if records.NumRecords() == 0 {
errors.New("Vault is not created yet")
err = errors.New("Vault is not created yet")
return jsonStatusError(err)
}