Skip to content

Commit

Permalink
[misc] update error message for empty_response case
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed Apr 10, 2022
1 parent a1e15a6 commit f47490d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ exports[`/products/characteristics GET When asked for an non-existing product
[ZodError: [
{
"code": "custom",
"message": "Bad response. The item you requested is not available.",
"message": "Bad response. The item you have requested is not available.",
"path": []
}
]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ exports[`/products/characteristics GET When asked for an non-existing product
[ZodError: [
{
"code": "custom",
"message": "Bad response. The item you requested is not available.",
"message": "Bad response. The item you have requested is not available.",
"path": []
}
]]
Expand Down
2 changes: 1 addition & 1 deletion source/types/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ type ErrorCode = 'empty_response'
export const customError = (errorCode: ErrorCode): CustomErrorParams => {
switch (errorCode) {
case 'empty_response':
return { message: `Bad response. The item you requested is not available.` }
return { message: `Bad response. The item you have requested is not available.` }
}
}

0 comments on commit f47490d

Please sign in to comment.