@contrail/cli 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,7 +14,7 @@ $ npm install -g @contrail/cli
14
14
  $ contrail-cli COMMAND
15
15
  running command...
16
16
  $ contrail-cli (--version)
17
- @contrail/cli/2.0.2 darwin-arm64 node-v18.13.0
17
+ @contrail/cli/2.0.3 darwin-arm64 node-v18.13.0
18
18
  $ contrail-cli --help [COMMAND]
19
19
  USAGE
20
20
  $ contrail-cli COMMAND
@@ -51,12 +51,13 @@ export class ActionDispatcher {
51
51
  body
52
52
  }
53
53
  } catch (error) {
54
- console.log("Error caught in handling action: ", error)
54
+ console.log("Error caught in handling action, sending Failure status: ", error)
55
55
  return {
56
- statusCode: 500,
56
+ statusCode: 200,
57
57
  body: {
58
58
  output: {
59
59
  errorMessage: error.message,
60
+ errorDetails: error.details
60
61
  },
61
62
  taskId: data.taskId,
62
63
  logs: logger.allEntries,
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.2",
2
+ "version": "2.0.3",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",