(e)
| 550 | } |
| 551 | |
| 552 | var finish = function (e) { |
| 553 | e = error || e || parser.imports.error; |
| 554 | |
| 555 | if (e) { |
| 556 | if (!(e instanceof LessError)) { |
| 557 | e = new(LessError)(e, env); |
| 558 | } |
| 559 | |
| 560 | return callback(e); |
| 561 | } |
| 562 | else { |
| 563 | return callback(null, root); |
| 564 | } |
| 565 | }; |
| 566 | |
| 567 | if (env.processImports !== false) { |
| 568 | new tree.importVisitor(this.imports, finish) |