function toErrorMessage(err) {
  if (err instanceof Error) {
    return err.message;
  }
  if (typeof err === "string") {
    return err;
  }
  return String(err);
}

export { toErrorMessage as t };
//# sourceMappingURL=error-DDXB3duW.js.map
