csv.go: better error handling