From 1aea16b2bda793167fa75d75868ae543aed24df7 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 24 Jun 2020 20:42:11 -0400 Subject: [PATCH] tweak --- site/rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/rollup.config.js b/site/rollup.config.js index f525ea712a..d4efb4eb29 100644 --- a/site/rollup.config.js +++ b/site/rollup.config.js @@ -14,7 +14,7 @@ const dev = mode === 'development'; const legacy = !!process.env.SAPPER_LEGACY_BUILD; if (!dev && !process.env.MAPBOX_ACCESS_TOKEN) { - throw Error('MAPBOX Access Token is missing. Please add the token in the .env file to generate the production build.'); + throw new Error('MAPBOX_ACCESS_TOKEN is missing. Please add the token in the .env file before generating the production build.'); } const onwarn = (warning, onwarn) => (warning.code === 'CIRCULAR_DEPENDENCY' && /[/\\]@sapper[/\\]/.test(warning.message)) || onwarn(warning);