gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Updated docs on NTP segment management


From: Eric S. Raymond
Subject: Re: [gpsd-dev] Updated docs on NTP segment management
Date: Tue, 3 Mar 2015 17:43:53 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

Hal Murray <address@hidden>:
> 
> address@hidden said:
> > Pearly had a question about sending pps=on to an old gpsd.  I assume if an
> > older gpsd gets an unknown option it ignores it?  Would be good to  know
> > going forward that is a policy. 
> 
> Ignoring things complicates debugging.

Which is why my JSON parser throws an error on unexpected attributes instead.
 
> address@hidden said:
> > The JSON parser throws an error on unknown attributes, but attribute
> > settings before the point of error are not invalidated.  Put pps=on last.  
> 
> Does it stop parsing/processing?

Yes.

>            Something like "pps=on" is well defined.  
> I'd vote for returning some sort of error message

That's why GPSD-JSON. has an ERROR class.

>                           and documenting what 
> happens both before and after the error.

I haven't done a good enough job of that.  Will fix.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]