mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
build(deps): update latest, fix issue with jest
This commit is contained in:
@ -36,7 +36,9 @@ export class GenerateChallengeCommand extends Command {
|
||||
)
|
||||
return 0
|
||||
} catch (error) {
|
||||
console.error(`${chalk.bold.red('Error:')} ${error.message as string}`)
|
||||
if (error instanceof Error) {
|
||||
console.error(`${chalk.bold.red('Error:')} ${error.message}`)
|
||||
}
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,9 @@ export class GenerateSolutionCommand extends Command {
|
||||
)
|
||||
return 0
|
||||
} catch (error) {
|
||||
console.error(`${chalk.bold.red('Error:')} ${error.message as string}`)
|
||||
if (error instanceof Error) {
|
||||
console.error(`${chalk.bold.red('Error:')} ${error.message}`)
|
||||
}
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,9 @@ export class RunTestCommand extends Command {
|
||||
console.log(successMessage)
|
||||
return 0
|
||||
} catch (error) {
|
||||
console.error(`\n${chalk.bold.red('Error:')} ${error.message as string}`)
|
||||
if (error instanceof Error) {
|
||||
console.error(`${chalk.bold.red('Error:')} ${error.message}`)
|
||||
}
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user