Skip to content
Snippets Groups Projects
Commit 25774d84 authored by James Calfee's avatar James Calfee
Browse files

For UI, keep FC_ASSERT assertion error if parsed text is empty. (#222)

parent 1aab021e
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ export default createModule({
if (err_lines.length > 2) {
errorKey = err_lines[1];
const txt = errorKey.split(': ')
if(txt.length) {
if(txt.length && txt[txt.length - 1].trim() !== '') {
errorKey = errorStr = txt[txt.length - 1]
} else
errorStr = `Transaction failed: ${err_lines[1]}`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment