diff --git a/gps/gps.go b/gps/gps.go index 21bee2e..a53a446 100644 --- a/gps/gps.go +++ b/gps/gps.go @@ -38,6 +38,10 @@ func (ge GPSError) Error() string { return ge.Err.Error() + " " + ge.Info + " " + ge.Sentence } +func (ge GPSError) Unwrap() error { + return ge.Err +} + // Device wraps a connection to a GPS device. type Device struct { buffer []byte