Throwing an error now on writeError if silentoption 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.

This commit is contained in:
Sandro Boehme
2014-04-05 18:46:08 +02:00
parent 372c55480b
commit 87f8df23af

View File

@@ -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) {