| Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| index e517e71e3e26d6b59b090553dcefd9581db49931..993ba7cd967f4ba91b15c5f6f49d89edeb1403ea 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| @@ -1040,12 +1040,14 @@ void PaymentRequest::OnAbort(bool aborted_successfully) {
|
| DCHECK(show_resolver_);
|
|
|
| if (!aborted_successfully) {
|
| - abort_resolver_->Reject(DOMException::Create(kInvalidStateError));
|
| + abort_resolver_->Reject(DOMException::Create(
|
| + kInvalidStateError, "Unable to abort the payment"));
|
| abort_resolver_.Clear();
|
| return;
|
| }
|
|
|
| - show_resolver_->Reject(DOMException::Create(kAbortError));
|
| + show_resolver_->Reject(
|
| + DOMException::Create(kAbortError, "The website has aborted the payment"));
|
| abort_resolver_->Resolve();
|
| ClearResolversAndCloseMojoConnection();
|
| }
|
|
|