@pronto-tools-and-more/network-process 3.16.0 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/parts/Login/Login.js +5 -0
package/package.json
CHANGED
package/src/parts/Login/Login.js
CHANGED
|
@@ -43,6 +43,11 @@ export const login = async ({ loginUrl, userEmail, userPassword }) => {
|
|
|
43
43
|
if (error && error.name === "HTTPError") {
|
|
44
44
|
// @ts-ignore
|
|
45
45
|
const serverMessage = await error.response.text();
|
|
46
|
+
if (serverMessage.includes("Cannot POST /api/user/login")) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
`Failed to login: Unable to login due to breaking api changes in the backend (see https://purplepublish.atlassian.net/browse/BACKEND-5178)`
|
|
49
|
+
);
|
|
50
|
+
}
|
|
46
51
|
if (serverMessage === "INTERNAL_ERROR") {
|
|
47
52
|
throw new Error("Failed to login: Internal error. Hint: Check headers");
|
|
48
53
|
}
|