Commit a4fd928
feat(gatsby-source-filesystem): improve wrong url rejection message (#25965)
* feat(gatsby-source-filesystem: improve wrong url rejection message
The existing message made tracing down a bug from within the new WP source plugin harder than necessary.
Old message: `wrong url: ${url}`
Updated message: `url passed to createRemoteFileNode is either missing or not a proper web uri: ${url}`
* chore: format
* update rejects test to match new message
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>1 parent f454acd commit a4fd928
2 files changed
Lines changed: 9 additions & 3 deletions
File tree
- packages/gatsby-source-filesystem/src
- __tests__
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
| |||
0 commit comments