Skip to content

Commit c1e6074

Browse files
committed
create-wp-site: Ask for an absolute path in the error message
1 parent 1b3ceab commit c1e6074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/create-wp-site/import-markdown-directory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ function uri_to_byte_stream( $uri ) {
548548
if ( file_exists( $uri ) ) {
549549
return FileReadStream::from_path( $uri );
550550
}
551-
throw new \Exception( "Unknown resource type: $uri" );
551+
throw new \Exception( "Unknown resource type: $uri. If that's a local file, \033[1mplease provide an absolute path to the file\033[0m." );
552552
}
553553

554554

0 commit comments

Comments
 (0)