Comparing version 0.6.5 to 0.6.6
{ | ||
"name": "cli-task", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"repository": "https://github.com/astoilkov/cli-task", | ||
@@ -5,0 +5,0 @@ "description": "Task runner for developers minimalists", |
@@ -26,9 +26,9 @@ "use strict"; | ||
this.status = StepStatus.Failure; | ||
if (err instanceof Error) { | ||
if (typeof err == 'string') { | ||
this.errorMessage = err; | ||
} | ||
else if (typeof err.message == 'string') { | ||
this.error = err; | ||
this.errorMessage = err.message; | ||
} | ||
else if (typeof err == 'string') { | ||
this.errorMessage = err; | ||
} | ||
} | ||
@@ -35,0 +35,0 @@ } |
@@ -15,3 +15,3 @@ "use strict"; | ||
} | ||
else if (err instanceof Error) { | ||
else if (err) { | ||
throw err; | ||
@@ -122,2 +122,3 @@ } | ||
this.getCurrentStep().failure(message); | ||
process.exit(1); | ||
} | ||
@@ -124,0 +125,0 @@ }; |
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
20555
552