Projekt

Obecné

Profil

« Předchozí | Další » 

Revize e92ebc5c

Přidáno uživatelem Michal Schwob před více než 1 rok

DEBUG: Added JSON.stringify for debug objects
re #10822

Zobrazit rozdíly:

src/stores/actions/userThunks.ts
55 55
            }
56 56
        } catch (err: any) {
57 57
            Toast.show({
58
                title: `Auth err: ${err}`,
58
                title: `Auth config: ${err.config}`,
59 59
                duration: 10000
60 60
            })
61
            return Promise.reject(err.response ? err.response.data : "Something went wrong" + err)
61

  
62
            Toast.show({
63
                title: `Auth message: ${err.message}`,
64
                duration: 10000
65
            })
66
            return Promise.reject(`response: ${JSON.stringify(err.response?.data)}, request: ${JSON.stringify(err.request)}, config: ${JSON.stringify(err.config)}` )
62 67
        }
63 68
    }
64 69
)

Také k dispozici: Unified diff