fix wrong value for meesage in hightlightfunc

pull/5370/head
Joseph Izang 1 year ago
parent 0b43f7e0e9
commit f26dd6bcad
  1. 2
      apps/vyper/src/app/components/CompilerButton.tsx

@ -73,7 +73,7 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}:
start: {line: line - 1, column: 10}, start: {line: line - 1, column: 10},
end: {line: line - 1, column: 10} end: {line: line - 1, column: 10}
} }
remixClient.highlight(lineColumnPos as any, _contract.name, '#e0b4b4') remixClient.highlight(lineColumnPos as any, _contract.name, output.message)
} else { } else {
const regex = output?.message?.match(/line ((\d+):(\d+))+/g) const regex = output?.message?.match(/line ((\d+):(\d+))+/g)
const errors = output?.message?.split(/line ((\d+):(\d+))+/g) // extract error message const errors = output?.message?.split(/line ((\d+):(\d+))+/g) // extract error message

Loading…
Cancel
Save