[Git][NTPsec/ntpsec][master] Better living through clearer error messages.
Eric S. Raymond
gitlab at mg.gitlab.com
Tue Nov 8 04:30:25 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
2c92e9a6 by Eric S. Raymond at 2016-11-07T23:30:10-05:00
Better living through clearer error messages.
- - - - -
1 changed file:
- ntpq/ntpq
Changes:
=====================================
ntpq/ntpq
=====================================
--- a/ntpq/ntpq
+++ b/ntpq/ntpq
@@ -1053,7 +1053,9 @@ usage: cl [ assocID ]
def do_clockvar(self, line):
"read clock variables"
assoc = self.__assoc_valid(line)
- if assoc >= 0:
+ if assoc == 0:
+ self.warn("This command requires the association ID of a clock.\n")
+ elif assoc > 0:
self.__dolist(line.split()[1:], assoc, CTL_OP_READCLOCK, TYPE_CLOCK)
def help_clockvar(self):
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2c92e9a63531bbc88d544a7c2f88a5b276430137
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161108/5eadca80/attachment.html>
More information about the vc
mailing list