From d9e58003f590fcf619c9215d7844bd91b7c4ea5b Mon Sep 17 00:00:00 2001 From: Alexandre Bodin Date: Tue, 6 Aug 2019 08:45:32 +0200 Subject: [PATCH] Fix typo --- packages/strapi-hook-bookshelf/lib/mount-models.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;