Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser platform error object has wrong structure. #118

Open
Emptyfruit opened this issue May 25, 2018 · 1 comment
Open

Browser platform error object has wrong structure. #118

Emptyfruit opened this issue May 25, 2018 · 1 comment

Comments

@Emptyfruit
Copy link

Ios or Android platform produce error object with structure as documented with code property that is a number. But in Browser platform code property is itself an object with the same structure as error, that is: code, source and exception. So in Browser i have to handle errors is such a manner:

if (error.code.code == 2) {...}

Plugin version: 2.3.1

Ionic info

cli packages: (/Users/Emptyfruit/dev/organizer/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.1.5
    Cordova Platforms  : android 6.3.0 browser 5.0.1 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2 
    ios-sim           : 5.0.13 
    Node              : v8.11.1
    npm               : 5.6.0 
    OS                : macOS High Sierra
    Xcode             : Xcode 9.3.1 Build version 9E501 

Environment Variables:

    ANDROID_HOME : /Users/Emptyfruit/Library/Android/sdk

Misc:

    backend : pro
@GillesC
Copy link
Collaborator

GillesC commented Aug 27, 2018

issue related to #74.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants