add title to logging - fixes #1292

This commit is contained in:
Sebastian McKenzie 2015-04-19 16:06:58 +01:00
parent d7b0b5bec0
commit 0f1215e33e

View File

@ -7,7 +7,7 @@ export default class Logger {
}
_buildMessage(msg: string): string {
var parts = this.filename;
var parts = `[BABEL] ${this.filename}`;
if (msg) parts += `: ${msg}`;
return parts;
}
@ -18,7 +18,7 @@ export default class Logger {
deprecate(msg) {
if (!this.file.opts.suppressDeprecationMessages) {
console.error(msg);
console.error(this._buildMessage(msg));
}
}