Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ function render( files, base, clbk ) {
* @param {string} html - rendered HTML
* @returns {void}
*/
function onRender( error, html ) {

}
function onRender( error, html ) {
if ( error ) {
debug( 'Encountered an error when rendering file. File: %s (%d of %d). Error: %s', files[ i ].file, i+1, total, error.message );
return clbk( error );
Expand All @@ -89,7 +91,6 @@ function render( files, base, clbk ) {

nextTick( done );
}
}

/**
* Callback invoked upon rendering all files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ function plugin( dir ) {
opts = {};
opts.cwd = dir;

args = new Array( 1 );
args = [];

// Target:
args[ 0 ] = 'view-complexity';
args.push('view-complexity');

proc = spawn( 'make', args, opts );
proc.on( 'error', onError );
Expand Down
Loading