We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9d268c commit a5294d5Copy full SHA for a5294d5
packages/utils/src/console/logger.ts
@@ -21,7 +21,7 @@ export const error = (...args: unknown[]): void => {
21
console.error(colors.red('error'), ...args)
22
}
23
24
-export const createError = (message?: string | undefined): Error => {
+export const createError = (message?: string): Error => {
25
error(message)
26
return new Error(message)
27
0 commit comments