Skip to content

Commit

Permalink
next/dynamic Error Message Tweaks (#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMitchell authored and arunoda committed Aug 17, 2017
1 parent c692101 commit 72edd59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export default function dynamicComponent (p, o) {
} else {
// Now we are trying to use the modules and render fields in options to load modules.
if (!p.modules || !p.render) {
const errorMessage = 'Options to `next/dynamic` should contains `modules` and `render` fields.'
const errorMessage = '`next/dynamic` options should contain `modules` and `render` fields'
throw new Error(errorMessage)
}

if (o) {
const errorMessage = 'Include options in the first argument which contains `modules` and `render` fields.'
const errorMessage = 'Add additional `next/dynamic` options to the first argument containing the `modules` and `render` fields'
throw new Error(errorMessage)
}

Expand Down

0 comments on commit 72edd59

Please sign in to comment.