Earlier, we stored only localized message in errors[foo]. Now we preserve the key and original error under {info}; and add the localized message under {message}.
This will help with error handling based on key, and paves way to support retry add-key on retry-able errors (such as timed out waiting for login, wrong account was logged in, key-add consent accidentally declined etc.)
Earlier, we stored only localized message in
errors[foo]
. Now we preserve thekey
and original error under{info}
; and add the localized message under{message}
.This will help with error handling based on key, and paves way to support retry add-key on retry-able errors (such as timed out waiting for login, wrong account was logged in, key-add consent accidentally declined etc.)
Part of https://github.com/interledger/web-monetization-extension/issues/613