mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-04-10 03:06:03 +00:00
fix error message
This commit is contained in:
parent
98495b7475
commit
07f19d527d
@ -5,7 +5,8 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./dist/index.js",
|
".": "./dist/index.js",
|
||||||
"./dist/internal/compilerSupport/v3": "./dist/internal/compilerSupport/v3"
|
"./dist/internal/compilerSupport/v3": "./dist/internal/compilerSupport/v3",
|
||||||
|
"./compilerSupport/v3": "./dist/internal/compilerSupport/v3"
|
||||||
},
|
},
|
||||||
"typings": "./dist/index.d.ts",
|
"typings": "./dist/index.d.ts",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -23,7 +23,13 @@ import { deserializeAvmResult, InterpreterResult, JSONValue, LogLevel, serialize
|
|||||||
import { concatMap, filter, pipe, Subject, tap } from 'rxjs';
|
import { concatMap, filter, pipe, Subject, tap } from 'rxjs';
|
||||||
|
|
||||||
import { FluenceAppService, loadDefaults, loadWasmFromFileSystem, loadWasmFromServer } from '@fluencelabs/marine-js';
|
import { FluenceAppService, loadDefaults, loadWasmFromFileSystem, loadWasmFromServer } from '@fluencelabs/marine-js';
|
||||||
import { PeerIdB58, CallServiceData, CallServiceResult, GenericCallServiceHandler, ResultCodes } from './commonTypes.js';
|
import {
|
||||||
|
PeerIdB58,
|
||||||
|
CallServiceData,
|
||||||
|
CallServiceResult,
|
||||||
|
GenericCallServiceHandler,
|
||||||
|
ResultCodes,
|
||||||
|
} from './commonTypes.js';
|
||||||
import { Particle, ParticleExecutionStage, ParticleQueueItem } from './Particle.js';
|
import { Particle, ParticleExecutionStage, ParticleQueueItem } from './Particle.js';
|
||||||
import { throwIfNotSupported, dataToString, jsonify, MarineLoglevel, marineLogLevelToEnvs, isString } from './utils.js';
|
import { throwIfNotSupported, dataToString, jsonify, MarineLoglevel, marineLogLevelToEnvs, isString } from './utils.js';
|
||||||
import { builtInServices } from './builtins/common.js';
|
import { builtInServices } from './builtins/common.js';
|
||||||
@ -640,7 +646,7 @@ export class FluencePeer {
|
|||||||
|
|
||||||
// Do not continue if there was an error in particle interpretation
|
// Do not continue if there was an error in particle interpretation
|
||||||
if (item.result instanceof Error) {
|
if (item.result instanceof Error) {
|
||||||
log.error('Interpreter failed: ', jsonify(item.result.message));
|
log.error('Interpreter failed: ', jsonify(item.result.toString()));
|
||||||
item.onStageChange({ stage: 'interpreterError', errorMessage: item.result.message });
|
item.onStageChange({ stage: 'interpreterError', errorMessage: item.result.message });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user