diff --git a/src/scripts/datetime.js b/src/scripts/datetime.js index 0a014b1de4..796ec3a6d7 100644 --- a/src/scripts/datetime.js +++ b/src/scripts/datetime.js @@ -19,7 +19,7 @@ import globalize from './globalize'; // "00", "00", ".000", "Z", undefined, undefined, undefined] if (!d) { - throw "Couldn't parse ISO 8601 date string '" + s + "'"; + throw new Error("Couldn't parse ISO 8601 date string '" + s + "'"); } // parse strings, leading zeros into proper ints