Skip to content

Commit bcf7b56

Browse files
authored
Revert "Added distinguish errors and warnings as text ERR and WARN"
1 parent 7c87101 commit bcf7b56

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cli.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ module.exports = function (dir, options) {
1313
var errors = issues.errors;
1414
var warnings = issues.warnings;
1515
if (issues.errors.length === 1 && issues.errors[0].code === '61') {
16-
console.log(colors.red("(ERR) The directory " + dir + " failed an initial Quick Test. This means the basic names and structure of the files and directories do not comply with BIDS specification. For more info go to http://bids.neuroimaging.io/"));
16+
console.log(colors.red("The directory " + dir + " failed an initial Quick Test. This means the basic names and structure of the files and directories do not comply with BIDS specification. For more info go to http://bids.neuroimaging.io/"));
1717
} else if (issues.config && issues.config.length >= 1) {
18-
console.log(colors.red('(ERR) Invalid Config File'));
18+
console.log(colors.red('Invalid Config File'));
1919
for (var i = 0; i < issues.config.length; i++) {
2020
var issue = issues.config[i];
2121
issue.file.file = {relativePath: issue.file.path};
@@ -41,8 +41,7 @@ module.exports = function (dir, options) {
4141
function logIssues (issues, color, options) {
4242
for (var i = 0; i < issues.length; i++) {
4343
var issue = issues[i];
44-
var type = (color==red ? 'ERR': 'WARN');
45-
console.log('\t' + colors[color]((i + 1) + ': (' + type + ') ' issue.reason + ' (code: ' + issue.code + ' - ' + issue.key + ')'));
44+
console.log('\t' + colors[color]((i + 1) + ': ' + issue.reason + ' (code: ' + issue.code + ' - ' + issue.key + ')'));
4645
for (var j = 0; j < issue.files.length; j++) {
4746
var file = issues[i].files[j];
4847
if (!file || !file.file) {continue;}

0 commit comments

Comments
 (0)