diff --git a/packages/concerto-cli/index.js b/packages/concerto-cli/index.js index 642db5ba39..8d52973fd7 100755 --- a/packages/concerto-cli/index.js +++ b/packages/concerto-cli/index.js @@ -76,10 +76,10 @@ require('yargs') }) .catch((err) => { Logger.info('Input is invalid'); - Logger.error(err.message); + Logger.error(err); }); } catch (err){ - Logger.error(err.message); + Logger.error(err); return; } }) diff --git a/packages/concerto-cli/lib/commands.js b/packages/concerto-cli/lib/commands.js index e499c09fcd..baac6861c2 100644 --- a/packages/concerto-cli/lib/commands.js +++ b/packages/concerto-cli/lib/commands.js @@ -114,9 +114,9 @@ class Commands { concerto.validate(json); } else { const factory = new Factory(modelManager); - const serializer = new Serializer(factory, modelManager, options); + const serializer = new Serializer(factory, modelManager); - const object = serializer.fromJSON(json, options); + const object = serializer.fromJSON(json); return JSON.stringify(serializer.toJSON(object, options)); } }