File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,6 @@ fn Root(cx: Scope) -> Element {
7979
8080> WARNING: ` dip ` is still in the very early stages of development.
8181
82- > ` main ` branch is currently preparing for ` v0.2 ` release.
83-
8482> ` v0.1 ` is totally a different application. I wanted to make a cross-platform text editor but ended up making this framework.
8583
8684## Features
Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ impl Plugin for BundleConfigPlugin {
2727fn add_sources ( mut builder : ResMut < ConfigBuilder < DefaultState > > ) {
2828 let config_file_path = BundleConfig :: config_file_path ( ) ;
2929
30- * builder = builder
31- . clone ( )
32- . add_source ( File :: with_name ( & config_file_path. display ( ) . to_string ( ) ) ) ;
30+ if config_file_path. is_file ( ) {
31+ * builder = builder
32+ . clone ( )
33+ . add_source ( File :: with_name ( & config_file_path. display ( ) . to_string ( ) ) ) ;
34+ }
3335}
3436
3537/// General dip configuration
@@ -137,7 +139,10 @@ impl ConfigParser {
137139 if path. is_dir ( ) {
138140 Ok ( path)
139141 } else {
140- Err ( de:: Error :: custom ( "Bundle path is not a directory" ) )
142+ Err ( de:: Error :: custom ( & format ! (
143+ "Make sure to create bundle directory: {}" ,
144+ path. display( )
145+ ) ) )
141146 }
142147 }
143148 Err ( _e) => Err ( de:: Error :: custom ( "Failed to parse bundle directory path" ) ) ,
You can’t perform that action at this time.
0 commit comments