diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-03 13:09:32 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-03 13:09:32 +0300 |
| commit | 07e1470892beacf0722276f94bacbd822b002540 (patch) | |
| tree | d8073ee564eb606fb27b35f4e63bf5780ccff212 /internal/io | |
| parent | 91ea8398ebc0febce20b9a460f9372998cd0b80f (diff) | |
add dmap tests
Diffstat (limited to 'internal/io')
| -rw-r--r-- | internal/io/dlog/dlog.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/io/dlog/dlog.go b/internal/io/dlog/dlog.go index 6cacfe2..2beda75 100644 --- a/internal/io/dlog/dlog.go +++ b/internal/io/dlog/dlog.go @@ -163,8 +163,11 @@ func (d *DLog) writeArgStrings(sb *strings.Builder, args []interface{}) { func (d *DLog) FatalPanic(args ...interface{}) { d.log(FATAL, args) - d.logger.Flush() - panic("Not recovering from this fatal error...") + d.Flush() + + var sb strings.Builder + d.writeArgStrings(&sb, args) + panic(sb.String()) } func (d *DLog) Fatal(args ...interface{}) string { |
