Create a formatted string representation of an error for better logging and display
Optional
const error = new Error("Something went wrong");console.error(formatError(error, { colors: true, includeData: true })); Copy
const error = new Error("Something went wrong");console.error(formatError(error, { colors: true, includeData: true }));
Create a formatted string representation of an error for better logging and display