mirror of
https://github.com/less/less.js.git
synced 2026-01-24 14:48:00 -05:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user