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