diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/conversions.go b/conversions.go index 7f488ca..0ed0329 100644 --- a/conversions.go +++ b/conversions.go @@ -105,7 +105,7 @@ func LatLongDeg(rad LatLong) (deg LatLong) { } if rad.Latitude < (-math.Pi/2) || rad.Latitude > math.Pi/2 { - log.Fatal("Latitude not within bounds -pi/2 to +pi/2") + log.Panic("Latitude not within bounds -pi/2 to +pi/2") } deg.Latitude = (rad.Latitude / math.Pi * 180) return diff --git a/gravity.go b/gravity.go index 8ea0045..0902616 100644 --- a/gravity.go +++ b/gravity.go @@ -49,7 +49,7 @@ func getGravConst(name Gravity) (grav GravConst) { grav.j4 = -0.00000161098761 grav.j3oj2 = grav.j3 / grav.j2 default: - log.Fatal(name, "is not a valid gravity model") + log.Panic(name, "is not a valid gravity model") } return diff --git a/helpers.go b/helpers.go index 55f5433..0d38411 100644 --- a/helpers.go +++ b/helpers.go @@ -94,7 +94,7 @@ func TLEToSat(line1, line2 string, gravConst Gravity) Satellite { func parseFloat(strIn string) (ret float64) { ret, err := strconv.ParseFloat(strIn, 64) if err != nil { - log.Fatal(err) + log.Panic(err) } return ret } @@ -103,7 +103,7 @@ func parseFloat(strIn string) (ret float64) { func parseInt(strIn string) (ret int64) { ret, err := strconv.ParseInt(strIn, 10, 0) if err != nil { - log.Fatal(err) + log.Panic(err) } return ret }