Fixed failing test

circom-desktop
ioedeveloper 2 weeks ago
parent f4e068b557
commit 5efe58b762
  1. 9
      apps/circuit-compiler/src/app/services/circomPluginClient.ts

@ -185,9 +185,6 @@ export class CircomPluginClient extends PluginClient {
this.internalEvents.emit('circuit_parsing_errored', parseErrors, filePathToId)
this.logCompilerReport(parseErrors)
return
} else if (parseErrors[0].type === 'Warning') {
this.internalEvents.emit('circuit_parsing_warning', parseErrors, filePathToId)
this.logCompilerReport(parseErrors)
}
} else {
this.internalEvents.emit('circuit_parsing_done', parseErrors, filePathToId)
@ -226,6 +223,12 @@ export class CircomPluginClient extends PluginClient {
} else {
this.internalEvents.emit('circuit_compiling_done', [])
}
if (parseErrors && (parseErrors.length > 0)) {
if (parseErrors[0].type === 'Warning') {
this.internalEvents.emit('circuit_parsing_warning', parseErrors, filePathToId)
this.logCompilerReport(parseErrors)
}
}
this._paq.push(['trackEvent', 'circuit-compiler', 'compile', 'Compilation successful'])
circuitApi.log().map(log => {
log && this.call('terminal', 'log', { type: 'log', value: log })

Loading…
Cancel
Save