Correct the error formatting

This commit is contained in:
Alex Tselegidis 2024-08-29 20:57:13 +02:00
parent 89feea4a00
commit c9da3c8aab

View file

@ -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';