From 59d4420739db20b204bb15a2880de871316aa70f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 29 Jul 2018 10:37:28 +0200 Subject: XEP-0323: Display the requested time in addition to the current time on error. --- slixmpp/plugins/xep_0323/sensordata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/plugins/xep_0323/sensordata.py b/slixmpp/plugins/xep_0323/sensordata.py index fa340aae..b16bd395 100644 --- a/slixmpp/plugins/xep_0323/sensordata.py +++ b/slixmpp/plugins/xep_0323/sensordata.py @@ -291,7 +291,7 @@ class XEP_0323(BasePlugin): request_delay_sec = dtdiff.seconds + dtdiff.days * 24 * 3600 if request_delay_sec <= 0: req_ok = False - error_msg = "Invalid datetime in 'when' flag, cannot set a time in the past. Current time: " + dtnow.isoformat() + error_msg = "Invalid datetime in 'when' flag, cannot set a time in the past (%s). Current time: %s" % (dt.isoformat(), dtnow.isoformat()) if req_ok: session = self._new_session() -- cgit v1.2.3