14 lines
314 B
JavaScript
14 lines
314 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(type, filePath, details) {
|
|
const msg
|
|
= '[' + type + '][hexo-renderer-pandoc-katex] On ' + filePath
|
|
+ '\n'
|
|
+ '[' + type + '][hexo-renderer-pandoc-katex] ' + details;
|
|
|
|
if (type === 'WARNING') {
|
|
console.warn(msg);
|
|
} else {
|
|
console.error(msg);
|
|
}
|
|
} |