You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Throw 'new Error' instead of string on $search with multiple words (#472)
This patch improves the error handling for #127 by showing a slightly
better understandable error message to the user.
Before:
<img width="622" alt="image"
src="https://github.com/cap-js/cds-dbs/assets/12449/370b718c-0efe-4c45-b0bb-afa7ad1549a0">
After:
<img width="620" alt="image"
src="https://github.com/cap-js/cds-dbs/assets/12449/032c340a-758d-43eb-825e-2b3b5afc22b8">
Seems like CAP expects an Error instance these days, because it accesses
error.message.
`Parameter 'error.message' must be type of 'string'`
# CDS setup
@sap/cds: 7.3.1
@sap/cds-compiler: 4.3.2
@sap/cds-dk (global): 7.3.2
@sap/cds-fiori: 1.1.0
@sap/cds-foss: 4.0.2
@sap/cds-mtxs: 1.12.1
@sap/eslint-plugin-cds: 2.6.3
Node.js: v18.19.1
cds-dbs: 1.3.1
0 commit comments