Skip to content

Commit

Permalink
Merge pull request #14 from MrHus/master
Browse files Browse the repository at this point in the history
When an error occurs the tasks is automatically stopped using grunt.warn...
  • Loading branch information
mdasberg committed Mar 11, 2015
2 parents 9cfaacd + 7a65e8c commit ac008e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/karma_sonar.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function (grunt) {
var content = grunt.file.read(source.coverageReport);
return content.replace(/SF:\./ig, 'SF:' + (source.prefix || '.'));
} else {
grunt.log.error(source.coverageReport + " does not exist.");
grunt.warn(source.coverageReport + " does not exist.");
return null;
}
}
Expand Down Expand Up @@ -88,7 +88,7 @@ module.exports = function (grunt) {

return content;
} else {
grunt.log.error(source.testReport + " does not exist.");
grunt.warn(source.testReport + " does not exist.");
return null;
}
}
Expand Down Expand Up @@ -196,7 +196,7 @@ module.exports = function (grunt) {
}
}, function (error, result, code) {
if (code !== 0) {
return grunt.log.error('The following error occured while trying to upload to sonar: ' + error);
return grunt.warn('The following error occured while trying to upload to sonar: ' + error);
} else {
grunt.log.writeln('Uploaded information to sonar.');
}
Expand Down

0 comments on commit ac008e9

Please sign in to comment.