diff --git a/packages/strapi-hook-bookshelf/lib/mount-models.js b/packages/strapi-hook-bookshelf/lib/mount-models.js index 97a74fba68..1f6bba0797 100644 --- a/packages/strapi-hook-bookshelf/lib/mount-models.js +++ b/packages/strapi-hook-bookshelf/lib/mount-models.js @@ -890,7 +890,9 @@ const castValueFromType = (type, value) => { date.setTime(value); if (!dateFns.isValid(date)) { - throw new Error(`Invalid ${type} format, expected a `); + throw new Error( + `Invalid ${type} format, expected a timestamp or an ISO date` + ); } return date;