mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-10 10:15:31 +02:00
🏷️ Provide a better return type for error
This commit is contained in:
parent
2bdcbb0736
commit
4ee227efbd
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class Log {
|
||||||
console.log(`\n${chalk.greenBright.bold('SUCCESS')}`, ...args)
|
console.log(`\n${chalk.greenBright.bold('SUCCESS')}`, ...args)
|
||||||
}
|
}
|
||||||
|
|
||||||
error(...args: unknown[]): void {
|
error(...args: unknown[]): never {
|
||||||
if (args[0] instanceof Error) {
|
if (args[0] instanceof Error) {
|
||||||
throw args[0]
|
throw args[0]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue