@pronto-tools-and-more/network-process 3.15.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/network-process",
3
- "version": "3.15.0",
3
+ "version": "3.17.0",
4
4
  "description": "",
5
5
  "main": "src/networkProcessMain.js",
6
6
  "type": "module",
@@ -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
  }