Skip to content

Commit da3a142

Browse files
committed
Error is object
1 parent f497aeb commit da3a142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ async function initMap() {
14751475
);
14761476
const periodArray = period.split("-");
14771477
if (periodArray.length !== 2) {
1478-
throw "Invalid period: " + period;
1478+
throw new Error("Invalid period: " + period);
14791479
}
14801480
const url = "/bekendmakingen/history/" + periodArray[0] + "/" + encodeURIComponent(lookupMunicipality.toLowerCase().replace(/\s/g, "-")) + "-" + period + ".json";
14811481
if (isNewRequest) {

0 commit comments

Comments
 (0)