Commit 280befd6 authored by Brandon Grimshaw's avatar Brandon Grimshaw Committed by Andrei Mihu
Browse files

Add type info to wallet update error message. (#252)

parent f32695bb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ func applyWalletUpdate(wallet map[string]interface{}, changeset map[string]inter
				}
			} else {
				// Existing value is not a map or float.
				return nil, errors.Errorf("unknown existing wallet value type at path '%v'", currentPath)
				return nil, errors.Errorf("unknown existing wallet value type at path '%v'. Expecting map or float64", currentPath)
			}
		} else {
			// No existing value for this field.
@@ -265,7 +265,7 @@ func applyWalletUpdate(wallet map[string]interface{}, changeset map[string]inter
				wallet[k] = changesetValue
			} else {
				// Incoming value is not a map or float.
				return nil, errors.Errorf("unknown update changeset value type at path '%v'", currentPath)
				return nil, errors.Errorf("unknown update changeset value type at path '%v'. Expecting map or float64", currentPath)
			}
		}
	}