summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-29 10:37:28 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-07-29 10:37:28 +0200
commit59d4420739db20b204bb15a2880de871316aa70f (patch)
tree6cc123b04cc8c7a28a9558b2563dba12b0e2dd56
parenta88f317bbfe0cc725aa32a5329dc7b45532c11b4 (diff)
downloadslixmpp-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.py2
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()