[pve-devel] [PATCH common 3/3] add the parsing error message to the format
Dominik Csapak
d.csapak at proxmox.com
Tue Jun 13 11:25:35 CEST 2017
so that one can see its error when using the api/gui
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PVE/CalendarEvent.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/CalendarEvent.pm b/src/PVE/CalendarEvent.pm
index c30686d..77b6008 100644
--- a/src/PVE/CalendarEvent.pm
+++ b/src/PVE/CalendarEvent.pm
@@ -27,7 +27,7 @@ sub pve_verify_calendar_event {
eval { parse_calendar_event($text); };
if (my $err = $@) {
return undef if $noerr;
- die "invalid calendar event '$text'\n";
+ die "invalid calendar event '$text' - $err\n";
}
return $text;
}
--
2.11.0
More information about the pve-devel
mailing list