diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-29 10:37:28 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-29 10:37:28 +0200 |
commit | 59d4420739db20b204bb15a2880de871316aa70f (patch) | |
tree | 6cc123b04cc8c7a28a9558b2563dba12b0e2dd56 | |
parent | a88f317bbfe0cc725aa32a5329dc7b45532c11b4 (diff) | |
download | slixmpp-59d4420739db20b204bb15a2880de871316aa70f.tar.gz slixmpp-59d4420739db20b204bb15a2880de871316aa70f.tar.bz2 slixmpp-59d4420739db20b204bb15a2880de871316aa70f.tar.xz slixmpp-59d4420739db20b204bb15a2880de871316aa70f.zip |
XEP-0323: Display the requested time in addition to the current time on error.
-rw-r--r-- | slixmpp/plugins/xep_0323/sensordata.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |