aligator / GoSlice

This is an experimental slicer for 3d printing written in Go also usable as modular slicing lib.
Apache License 2.0
108 stars 16 forks source link

Panic when file does not exist #50

Closed aligator closed 2 years ago

aligator commented 2 years ago

-> show a readable error message

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/aligator/goslice/reader.model.Min({{0x0, 0xc0000a6120, 0xc0000a6120}})
    github.com/aligator/goslice/reader/reader.go:61 +0x2d7
github.com/aligator/goslice.(*GoSlice).Process(0xc0000f6aa0)
    github.com/aligator/goslice/goslice.go:134 +0x117
main.main()
    github.com/aligator/goslice/cmd/goslice/main.go:30 +0xfd
fayccal commented 2 years ago

hello, could i get assigned this issue i would like to work on it.