Merge pull request #1719 from stackernews/fix-missing-save-error-log
Fix missing logging of sender wallet validation error
This commit is contained in:
commit
e8434d07c5
|
@ -37,6 +37,7 @@ export function useWalletConfigurator (wallet) {
|
||||||
let serverConfig = serverWithShared
|
let serverConfig = serverWithShared
|
||||||
|
|
||||||
if (canSend({ def: wallet.def, config: clientConfig })) {
|
if (canSend({ def: wallet.def, config: clientConfig })) {
|
||||||
|
try {
|
||||||
let transformedConfig = await validateWallet(wallet.def, clientWithShared, { skipGenerated: true })
|
let transformedConfig = await validateWallet(wallet.def, clientWithShared, { skipGenerated: true })
|
||||||
if (transformedConfig) {
|
if (transformedConfig) {
|
||||||
clientConfig = Object.assign(clientConfig, transformedConfig)
|
clientConfig = Object.assign(clientConfig, transformedConfig)
|
||||||
|
@ -49,6 +50,10 @@ export function useWalletConfigurator (wallet) {
|
||||||
// validate again to ensure generated fields are valid
|
// validate again to ensure generated fields are valid
|
||||||
await validateWallet(wallet.def, clientConfig)
|
await validateWallet(wallet.def, clientConfig)
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
logger.error(err.message)
|
||||||
|
throw err
|
||||||
|
}
|
||||||
} else if (canReceive({ def: wallet.def, config: serverConfig })) {
|
} else if (canReceive({ def: wallet.def, config: serverConfig })) {
|
||||||
const transformedConfig = await validateWallet(wallet.def, serverConfig)
|
const transformedConfig = await validateWallet(wallet.def, serverConfig)
|
||||||
if (transformedConfig) {
|
if (transformedConfig) {
|
||||||
|
|
Loading…
Reference in New Issue