[Pkg-javascript-commits] [less.js] 14/50: Throwing an error now on `writeError` if `silent`option is not set to give users of the API the possibility to distinguish between a successful compilation and an unsuccessful one without needing to parse the output.
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:22:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v1.7.1
in repository less.js.
commit 87f8df23afbaeea9f2bf9b02121edc030b113154
Author: Sandro Boehme <sandro.boehme at inovex.de>
Date: Sat Apr 5 18:46:08 2014 +0200
Throwing an error now on `writeError` if `silent`option is not set to give users of the API the possibility to distinguish between a successful compilation and an unsuccessful one without needing to parse the output.
---
lib/less/rhino.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/less/rhino.js b/lib/less/rhino.js
index 2e4f51c..1b836af 100644
--- a/lib/less/rhino.js
+++ b/lib/less/rhino.js
@@ -56,7 +56,8 @@ function formatError(ctx, options) {
function writeError(ctx, options) {
options = options || {};
if (options.silent) { return; }
- print(formatError(ctx, options));
+ var message = formatError(ctx, options);
+ throw new Error(message);
}
function loadStyleSheet(sheet, callback, reload, remaining) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list