Skip to content

Commit

Permalink
Merge pull request #21 from Kenzitron/show_folder_on_error
Browse files Browse the repository at this point in the history
Add directory on error logs when trying to delete it.
  • Loading branch information
Kenzitron committed Feb 11, 2016
2 parents 12e789d + 01a5bd8 commit 58789fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require('string.prototype.startswith');

var UNDEFINED, exportObject = exports;

var sanitizeFilename = function(name) {
function sanitizeFilename(name){
name = name.replace(/\s+/gi, '-'); // Replace white space with dash
return name.replace(/[^a-zA-Z0-9\-]/gi, ''); // Strip any special charactere
}
Expand Down Expand Up @@ -65,8 +65,8 @@ function rmdir(dir) {
}
}
fs.rmdirSync(dir);
}catch (e) { log("problem trying to remove a folder"); }
};
}catch (e) { log("problem trying to remove a folder:" + dir); }
}

function Jasmine2HTMLReporter(options) {

Expand All @@ -90,7 +90,7 @@ function Jasmine2HTMLReporter(options) {
currentSuite = null,
totalSpecsExecuted = 0,
totalSpecsDefined,
// when use use fit, jasmine never calls suiteStarted / suiteDone, so make a fake one to use
// when use use fit, jasmine never calls suiteStarted / suiteDone, so make a fake one to use
fakeFocusedSuite = {
id: 'focused',
description: 'focused specs',
Expand Down

0 comments on commit 58789fc

Please sign in to comment.