mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
write traceback to log crash log
This commit is contained in:
parent
a2dee91eba
commit
b61488a8ba
@ -60,6 +60,9 @@ func PanicHandler(logF *os.File) panicwrap.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
// add the trace back to the log
|
||||
f.WriteString("\n" + m)
|
||||
|
||||
// Tell the user a crash occurred in some helpful way that
|
||||
// they'll hopefully notice.
|
||||
fmt.Printf("\n\n")
|
||||
|
Loading…
Reference in New Issue
Block a user