This repository was archived by the owner on Oct 20, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ const parseParts = function (from, parts) {
96
96
97
97
const toIndex = parts . findIndex ( isToPart )
98
98
if ( toIndex === - 1 ) {
99
- throw new Error ( 'Missing destination path/URL' )
99
+ throw new Error ( 'The destination path/URL must start with "/", "http:" or "https:" ' )
100
100
}
101
101
102
102
const queryParts = parts . slice ( 0 , toIndex )
Original file line number Diff line number Diff line change @@ -162,8 +162,8 @@ each(
162
162
{ title : 'invalid_dot_netlify_path' , errorMessage : / m u s t n o t s t a r t / } ,
163
163
{ title : 'invalid_no_to_no_status' , errorMessage : / M i s s i n g d e s t i n a t i o n / } ,
164
164
{ title : 'invalid_no_to_status' , errorMessage : / M i s s i n g " t o " f i e l d / } ,
165
- { title : 'invalid_no_to_query' , errorMessage : / M i s s i n g d e s t i n a t i o n / } ,
166
- { title : 'invalid_no_slash' , errorMessage : / M i s s i n g d e s t i n a t i o n / } ,
165
+ { title : 'invalid_no_to_query' , errorMessage : / m u s t s t a r t w i t h / } ,
166
+ { title : 'invalid_no_slash' , errorMessage : / m u s t s t a r t w i t h / } ,
167
167
{ title : 'invalid_mistaken_headers' , errorMessage : / M i s s i n g d e s t i n a t i o n / } ,
168
168
] ,
169
169
( { title } , { fixtureName = title , errorMessage } ) => {
You can’t perform that action at this time.
0 commit comments