TreelineErrors.brokenRoutePage()

Get the HTML for a page explaining that there was a compile error.

Usage

Hover over inputs/exits for more info.

var TreelineErrors = require('machinepack-treeline-errors');


// Get the HTML for a page explaining that there was a compile error.

TreelineErrors.brokenRoutePage({

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (html) {

 

},

});

Inputs

Exits

error

An unexpected error occurred.

success

OK.

'<html>...</html>'