| Index: Source/modules/geolocation/GeofencingError.cpp
|
| diff --git a/Source/modules/push_messaging/PushError.cpp b/Source/modules/geolocation/GeofencingError.cpp
|
| similarity index 56%
|
| copy from Source/modules/push_messaging/PushError.cpp
|
| copy to Source/modules/geolocation/GeofencingError.cpp
|
| index 8b5e93e83a6827fbceeeda8b449d0df9a0eedb86..3b4e708249da1773a37ec264c546ad7349775f8f 100644
|
| --- a/Source/modules/push_messaging/PushError.cpp
|
| +++ b/Source/modules/geolocation/GeofencingError.cpp
|
| @@ -3,21 +3,21 @@
|
| // found in the LICENSE file.
|
|
|
| #include "config.h"
|
| -#include "modules/push_messaging/PushError.h"
|
| +#include "modules/geolocation/GeofencingError.h"
|
|
|
| #include "core/dom/ExceptionCode.h"
|
| #include "wtf/OwnPtr.h"
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtrWillBeRawPtr<DOMException> PushError::from(ScriptPromiseResolver*, WebType* webErrorRaw)
|
| +PassRefPtrWillBeRawPtr<DOMException> GeofencingError::from(ScriptPromiseResolver*, WebType* webErrorRaw)
|
| {
|
| OwnPtr<WebType> webError = adoptPtr(webErrorRaw);
|
| switch (webError->errorType) {
|
| - case blink::WebPushError::ErrorTypeAbort:
|
| - return DOMException::create(AbortError, "Registration failed.");
|
| - case blink::WebPushError::ErrorTypeUnknown:
|
| - return DOMException::create(UnknownError);
|
| + case WebType::ErrorTypeAbort:
|
| + return DOMException::create(AbortError, webError->message);
|
| + case WebType::ErrorTypeUnknown:
|
| + return DOMException::create(UnknownError, webError->message);
|
| }
|
| ASSERT_NOT_REACHED();
|
| return DOMException::create(UnknownError);
|
|
|