FuncType - v0.9.5
    Preparing search index...

    Function formatError

    • Create a formatted string representation of an error for better logging and display

      Parameters

      Returns string

      const error = new Error("Something went wrong");
      console.error(formatError(error, { colors: true, includeData: true }));