export default class TranscodeError extends Error {
  constructor(message, file, additional = '') {
    super();
    this.message = message;
    this.file = file;
    this.additional = additional;
  }

  toString() {
    return [`[TranscodeError: ${this.message}]`, `File: ${this.file}`, this.additional].join("\n");
  }
}

export default class TranscodeError extends Error {
  constructor(message, file, additional = '') {
    super();
    this._message = message;
    this.file = file;
    this.additional = additional;
    this.message = [`[TranscodeError: ${this._message}]`, `File: ${this.file}`, this.additional].join("\n");
  }

  toString() {
    return this.message;
  }
}

Include original error message in TranscodeError.
Include original error message in TranscodeError.

Include original error message in error output for a
`TranscodeError`.
