-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Here, the errors may be silently lost.
In my case I have the following data
value:
[
{
isSuccess: false,
error: {
data: {
},
message: {
message: "conditions[0].chain must be one of [Ethereum, Rinkeby, Polygon, Fantom, FantomTest, AVAX, Fuji, BSC, BSCTest, Optimism, OptimismGoerli, OptimismKovan, Mumbai, Filecoin, Wallaby, Filecoin_Testnet, shardeum, Shardeum_Lib1, Shardeum_Lib2, Shardeum_Sphinx, Goerli, Hyperspace, BTTC, BTTC_Testnet, Sepolia_PGN, Arbitrum_Sepolia, Sepolia, Base, Base_Testnet, Lukso, Lukso_Testnet, Amoy_Testnet, Abstract_Testnet]",
param: "chain",
},
statusCode: 400,
},
},
// +4 same objects
]
The function then returns only this:
{ isSuccess: false, error: null }
This essentially conceals the cause of the error from the caller, which degrades the debugging experience.
Metadata
Metadata
Assignees
Labels
No labels