Compiler support: fix issue with incorrect ttl value in config (#100)

This commit is contained in:
Pavel
2021-11-10 17:49:42 +03:00
committed by GitHub
parent aa21abe465
commit 6e0a8c011f
5 changed files with 52 additions and 12 deletions

View File

@ -420,7 +420,7 @@ export class FluencePeer {
const result = runInterpreter(this.getStatus().peerId, this._interpreter, particle, prevData);
// Do not continue if there was an error in particle interpretation
if (isInterpretationSuccessful(result)) {
if (!isInterpretationSuccessful(result)) {
item.onStageChange({ stage: 'interpreterError', errorMessage: result.errorMessage });
return;
}
@ -575,7 +575,7 @@ export class FluencePeer {
}
function isInterpretationSuccessful(result: InterpreterResult) {
return result.retCode !== 0 || result?.errorMessage?.length > 0;
return result.retCode === 0;
}
function serviceFnKey(serviceId: string, fnName: string) {