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 89688e55f750994fe814e767b3057412d81cb4bc..697077558264391a19d958fd976005c5a4c77195 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
@@ -458,10 +458,13 @@ void PaymentRequest::onUpdatePaymentDetails(const ScriptValue& detailsScriptValu |
void PaymentRequest::onUpdatePaymentDetailsFailure(const ScriptValue& error) |
{ |
+ String message; |
+ error.toString(message); |
+ |
if (m_showResolver) |
- m_showResolver->reject(error); |
+ m_showResolver->reject(DOMException::create(AbortError, message)); |
if (m_completeResolver) |
- m_completeResolver->reject(error); |
+ m_completeResolver->reject(DOMException::create(AbortError, message)); |
clearResolversAndCloseMojoConnection(); |
} |