diff --git a/python/lsst/summit/utils/efdUtils.py b/python/lsst/summit/utils/efdUtils.py index d6d3512c..0f46250a 100644 --- a/python/lsst/summit/utils/efdUtils.py +++ b/python/lsst/summit/utils/efdUtils.py @@ -832,6 +832,8 @@ def getCommands( timeKey = time.to_pydatetime() if timeKey in commandTimes: - raise ValueError(f"There is already a command at {timeKey=} - make a better data structure!") + msg = f"There is already a command at {timeKey=} - make a better data structure!" + msg += f"Colliding commands = {commandTimes[timeKey]} and {command}" + raise ValueError(msg) commandTimes[timeKey] = command return commandTimes