function error(msg, expected, actual) {
  const err = new Error(msg);
  err.expected = expected;
  err.actual = actual;
  err.showDiff = true;
  return err;
}
Return an `Error` with `msg` and results properties.

@param {String} msg
@param {Mixed} expected
@param {Mixed} actual
@return {Error}
@api private