File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
v-next/hardhat/src/internal/cli Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
- import util from "node:util" ;
2
-
3
1
import {
4
2
HardhatError ,
5
3
HardhatPluginError ,
@@ -69,7 +67,7 @@ interface ErrorMessages {
69
67
export function printErrorMessages (
70
68
error : unknown ,
71
69
shouldShowStackTraces : boolean = false ,
72
- print : ( message : string ) => void = console . error ,
70
+ print : ( message : any ) => void = console . error ,
73
71
) : void {
74
72
const showStackTraces =
75
73
shouldShowStackTraces ||
@@ -85,7 +83,7 @@ export function printErrorMessages(
85
83
print ( "" ) ;
86
84
87
85
if ( showStackTraces ) {
88
- print ( error instanceof Error ? ` ${ error . stack } ` : ` ${ util . inspect ( error ) } ` ) ;
86
+ print ( error ) ;
89
87
if ( postErrorStackTraceMessage !== undefined ) {
90
88
print ( "" ) ;
91
89
print ( postErrorStackTraceMessage ) ;
You can’t perform that action at this time.
0 commit comments