better message

pull/3850/head
yann300 2 years ago committed by Aniket
parent 2387a622e1
commit b3eef9cf58
  1. 4
      libs/remix-ui/renderer/src/lib/renderer.tsx

@ -71,9 +71,9 @@ export const Renderer = ({message, opt = {}, plugin}: RendererProps) => {
try { try {
const content = await plugin.call('fileManager', 'readFile', editorOptions.errFile) const content = await plugin.call('fileManager', 'readFile', editorOptions.errFile)
const message = ` const message = `
solidity file: ${content} solidity code: ${content}
error message: ${messageText} error message: ${messageText}
explain which line the error occured, the reason and how to fix it. explain why the error occurred and how to fix it.
` `
await plugin.call('openaigpt', 'message', message) await plugin.call('openaigpt', 'message', message)
} catch (err) { } catch (err) {

Loading…
Cancel
Save