mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-03-15 07:20:49 +00:00
fix error message
This commit is contained in:
parent
98495b7475
commit
07f19d527d
@ -5,7 +5,8 @@
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./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",
|
||||
"engines": {
|
||||
|
@ -23,7 +23,13 @@ import { deserializeAvmResult, InterpreterResult, JSONValue, LogLevel, serialize
|
||||
import { concatMap, filter, pipe, Subject, tap } from 'rxjs';
|
||||
|
||||
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 { throwIfNotSupported, dataToString, jsonify, MarineLoglevel, marineLogLevelToEnvs, isString } from './utils.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
|
||||
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 });
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user