File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,13 @@ pub fn get_compiler_args(rescript_file_path: &Path) -> Result<String> {
90
90
PathBuf :: from ( & interface_filename) . exists ( )
91
91
} ;
92
92
93
- let runtime_path = helpers:: get_runtime_path ( & project_context) . ok ( ) ;
93
+ let runtime_path = match helpers:: get_runtime_path ( & project_context) {
94
+ Ok ( path) => Some ( path) ,
95
+ Err ( _) => {
96
+ println ! ( "Warning: could not determine runtime path" ) ;
97
+ None
98
+ }
99
+ } ;
94
100
95
101
let compiler_args = compile:: compiler_args (
96
102
& project_context. current_config ,
@@ -160,7 +166,13 @@ pub fn initialize_build(
160
166
let _ = stdout ( ) . flush ( ) ;
161
167
}
162
168
163
- let runtime_path = helpers:: get_runtime_path ( & project_context) . ok ( ) ;
169
+ let runtime_path = match helpers:: get_runtime_path ( & project_context) {
170
+ Ok ( path) => Some ( path) ,
171
+ Err ( _) => {
172
+ println ! ( "Warning: could not determine runtime path" ) ;
173
+ None
174
+ }
175
+ } ;
164
176
165
177
let mut build_state = BuildState :: new ( project_context, packages, bsc_path, runtime_path) ;
166
178
packages:: parse_packages ( & mut build_state) ;
You can’t perform that action at this time.
0 commit comments