How to use the fail function from npmlog
Find comprehensive JavaScript npmlog.fail code examples handpicked from public code repositorys.
GitHub: wvbe/node-schematron
71 72 73 74 75 76 77 78 79 80
npmlogItem.name = i + 1 + ' of ' + stats.files; npmlogItem.completeWork(1); // It's possible the file could not be read, parsed or other if (file.$error) { npmlog.fail(null, file.$fileNameBase); npmlog.fileError(formatPrefix(ASCII_WARNING, ASCII_COLOR_RED), file.$error.message); ++stats.filesWithErrors; return; }
2
9
4
+ 3 other calls in file
npmlog.verbose is the most popular function in npmlog (7425 examples)