From c9da3c8aabdb2fe9e701ff36f1fc98bc3eed6279 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 29 Aug 2024 20:57:13 +0200 Subject: [PATCH] Correct the error formatting --- assets/js/utils/calendar_default_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/utils/calendar_default_view.js b/assets/js/utils/calendar_default_view.js index eb9d4004..a2154fc3 100755 --- a/assets/js/utils/calendar_default_view.js +++ b/assets/js/utils/calendar_default_view.js @@ -1444,7 +1444,7 @@ App.Utils.CalendarDefaultView = (function () { break; default: - throw new Error('Invalid date format setting provided!', vars('date_format')); + throw new Error('Invalid date format setting provided: ' + vars('date_format')); } // Time formats @@ -1461,7 +1461,7 @@ App.Utils.CalendarDefaultView = (function () { slotTimeFormat = 'h a'; break; default: - throw new Error('Invalid time format setting provided!', vars('time_format')); + throw new Error('Invalid time format setting provided: ' + vars('time_format')); } const initialView = window.innerWidth < 468 ? 'timeGridDay' : 'timeGridWeek';