suyashkumar / dicom

⚡High Performance DICOM Medical Image Parser in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal exit without defer

maddin200 opened this issue · comments

/cmd\dicomutil\main.go line 67
Code:
if err != nil {
log.Fatalf("error parsing data: %v", err) // <-- will not use defer
}

I think you are pointing out that log.Fatalf exits the example dicomutil program without running the defered functions? Thanks for pointing it out, I'll make some updates in #278 (probably dicomutil in general could use a refactor to be honest).

Addressed in dicomutil in #278