brandonagr / gocupi

Polargraph (vertical plotter / drawing machine) written in Go
GNU Lesser General Public License v3.0
101 stars 26 forks source link

error messages #3

Closed earthtown closed 10 years ago

earthtown commented 10 years ago

When I provoke this error to see what the order of parameters is, I get lost in the error messages, which aren't really human readable. IDK what the solution is as I suspect the error msgs contain helpful troubleshooting info...maybe write them to a 'error.log' or something similar?

pi@gocupi ~ $ gocupi setup Enter the initial setup measurements of the system.

setup D L R D - distance between the idlers L - length of left string from left idler to pen tip R - length of right string from right idler to pen tip

panic: Expected at least 3 numeric parameters and only saw 0

goroutine 16 [running]: runtime.panic(0x24f978, 0x10636388) /usr/local/go/src/pkg/runtime/panic.c:279 +0x1a0 main.GetArgsAsFloats(0x2bebc0, 0x5, 0x10600010, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0) /home/pi/gopath/src/github.com/brandonagr/gocupi/gocupi.go:357 +0x1e4 main.main() /home/pi/gopath/src/github.com/brandonagr/gocupi/gocupi.go:337 +0x24e4

goroutine 19 [finalizer wait]: runtime.park(0x22a24, 0x4143a8, 0x401a71) /usr/local/go/src/pkg/runtime/proc.c:1369 +0x5c runtime.parkunlock(0x4143a8, 0x401a71) /usr/local/go/src/pkg/runtime/proc.c:1385 +0x40 runfinq() /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xa0 runtime.goexit() /usr/local/go/src/pkg/runtime/proc.c:1445