Skip to content

Commit

Permalink
Improve invariant copy
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Apr 10, 2016
1 parent f9d6eae commit 6c29c6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils/build-page/url-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ export default function pathResolver (pageData, parsedPath) {
function hardcodedPath () {
if (pageData.path) {
const pathInvariantMessage = `
Paths must be prepended with a forward slash. You set the path to
"${pageData.path}" in "${parsedPath.path}" but instead it should be "/${pageData.path}"
Hardcoded paths are relative to the website root so must be prepended with a
forward slash. You set the path to "${pageData.path}" in "${parsedPath.path}"
but it should be "/${pageData.path}"
See http://bit.ly/1qeNpdy for more.
`
Expand Down

0 comments on commit 6c29c6c

Please sign in to comment.