Skip to content

Commit

Permalink
use usual error message
Browse files Browse the repository at this point in the history
  • Loading branch information
3ch023 committed Aug 14, 2024
1 parent 535afeb commit 06f7a7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions libs/deps/mas/commerce.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions libs/deps/mas/mas.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions libs/features/mas/commerce/src/wcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,11 @@ export function Wcs({ settings }) {
),
);
} else {
const error = await response.text();
log.error(`WCS request failed. Status: ${response.status}, message: ${error}`, options);
message = ERROR_MESSAGE_BAD_REQUEST;
log.error(message, options);
}
} catch (e) {
message = 'Failed to fetch WCS offer.';
message = ERROR_MESSAGE_BAD_REQUEST;
log.error(message, options, e);
}

Expand Down

0 comments on commit 06f7a7e

Please sign in to comment.