turbo-carto
Advanced tools
Comparing version 0.13.0 to 0.14.0
# Changelog | ||
## Version 0.14.0 | ||
Released 2016-07-06 | ||
- Improve turbo-carto error with better messages: context not part of message anymore. | ||
## Version 0.13.0 | ||
@@ -4,0 +10,0 @@ Released 2016-07-05 |
{ | ||
"name": "turbo-carto", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "CartoCSS preprocessor", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -84,3 +84,3 @@ 'use strict'; | ||
} | ||
throw new TurboCartoError('Unable to process "' + decl.prop + '"', err, context); | ||
throw new TurboCartoError('Failed to process "' + decl.prop + '" property:', err, context); | ||
}); | ||
@@ -128,3 +128,3 @@ }; | ||
return Promise.reject( | ||
new TurboCartoError('Invalid number of arguments') | ||
new TurboCartoError('invalid number of arguments') | ||
); | ||
@@ -139,3 +139,3 @@ } | ||
return Promise.reject( | ||
new TurboCartoError('Invalid number of arguments') | ||
new TurboCartoError('invalid number of arguments') | ||
); | ||
@@ -166,3 +166,3 @@ } | ||
return reject( | ||
new TurboCartoError('Unable to compute ramp', err) | ||
new TurboCartoError('unable to compute ramp,', err) | ||
); | ||
@@ -180,3 +180,3 @@ } | ||
return Promise.reject( | ||
new TurboCartoError('Invalid ramp length. Got ' + ramp.length + ' values, expected ' + tuple.length) | ||
new TurboCartoError('invalid ramp length, got ' + ramp.length + ' values, expected ' + tuple.length) | ||
); | ||
@@ -183,0 +183,0 @@ } |
@@ -8,10 +8,7 @@ 'use strict'; | ||
if (originalErr) { | ||
message += '. Reason: ' + originalErr.message; | ||
message += ' ' + originalErr.message; | ||
} | ||
if (context) { | ||
message += '. Context: ' + JSON.stringify(context); | ||
} | ||
this.message = message; | ||
this.originalErr = originalErr; | ||
this.context = context; | ||
@@ -18,0 +15,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
59400
1299