about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-09-23 15:34:59 +0200
committerEmile <hanemile@protonmail.com>2019-09-23 15:34:59 +0200
commite4a9b7da09325c84fc738f713f790c22a39d3341 (patch)
tree80887e8ad64c1bb69f978af581092819e4ce906f
parent6b109e6107a9b10cd41285e708c298cd8f9e0434 (diff)
removed code printing a possibly nonexistant string
printing the string resulting in an error doesnt seem like a good idea
-rw-r--r--convert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert.go b/convert.go
index 100538b..15c3962 100644
--- a/convert.go
+++ b/convert.go
@@ -39,7 +39,7 @@ func parseLineOne(SplitTLE []string) (LineOne, error) {
 	// parse the line number
 	LineOneLinenumber, err := strconv.Atoi(string(SplitTLE[1][0]))
 	if err != nil {
-		return LineOne{}, fmt.Errorf("%s: %#v\n%v", "Could not parse the line number", SplitTLE[1][1], err)
+		return LineOne{}, fmt.Errorf("%#v\n%v", "Could not parse the line number", err)
 	}
 
 	// Parse the Satellite Number