@coralproject/coral-cli-command
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -25,3 +25,4 @@ "use strict"; | ||
if (contentType && contentType.includes("application/json")) { | ||
throw new Error(await res.json()); | ||
const { error } = await res.json(); | ||
throw new Error(error.message); | ||
} | ||
@@ -28,0 +29,0 @@ else { |
{ | ||
"name": "@coralproject/coral-cli-command", | ||
"description": "base class for Coral CLI commands", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"author": "Wyatt Johnson @wyattjoh", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/coralproject/coral-cli-command/issues", |
@@ -32,3 +32,4 @@ import * as Config from "@oclif/config"; | ||
if (contentType && contentType.includes("application/json")) { | ||
throw new Error(await res.json()); | ||
const { error } = await res.json(); | ||
throw new Error(error.message); | ||
} else { | ||
@@ -35,0 +36,0 @@ throw new Error(await res.text()); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15037
426