Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Jun 25, 2020
1 parent 80293a2 commit 1aea16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1aea16b

Please sign in to comment.