|
|
@ -319,21 +319,17 @@ export const DebuggerUI = (props: DebuggerUIProps) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} catch (error) { |
|
|
|
} catch (error) { |
|
|
|
try { |
|
|
|
unLoad() |
|
|
|
unLoad() |
|
|
|
setState(prevState => { |
|
|
|
setState(prevState => { |
|
|
|
let errorMsg = error.message || error |
|
|
|
let errorMsg = error.message || error |
|
|
|
if (typeof errorMsg !== 'string') { |
|
|
|
if (typeof errorMsg !== 'string') { |
|
|
|
errorMsg = JSON.stringify(errorMsg) + '. Possible error: the current endpoint does not support retrieving the trace of a transaction.' |
|
|
|
errorMsg = JSON.stringify(errorMsg) + '. Possible error: the current endpoint does not support retrieving the trace of a transaction.' |
|
|
|
} |
|
|
|
} |
|
|
|
return { |
|
|
|
return { |
|
|
|
...prevState, |
|
|
|
...prevState, |
|
|
|
validationError: errorMsg |
|
|
|
validationError: errorMsg |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.error(e) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, 300) |
|
|
|
}, 300) |
|
|
|
handleResize() |
|
|
|
handleResize() |
|
|
|