From cfcadd155dc0269023010a55f2b3ec467a903fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 11 Nov 2025 10:41:55 +0100 Subject: [PATCH] core: display an error message if the date can not be parsed with command `/print -date` --- src/core/core-command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/core-command.c b/src/core/core-command.c index aeb6c85d7..7befe8b6a 100644 --- a/src/core/core-command.c +++ b/src/core/core-command.c @@ -5599,7 +5599,8 @@ COMMAND_CALLBACK(print) } else { - util_parse_time (argv[i], &tv_date); + if (!util_parse_time (argv[i], &tv_date)) + COMMAND_ERROR; } } else if (string_strcmp (argv[i], "-tags") == 0)