File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ export async function findDefaultSdkInitFile(
4242 if ( fs . existsSync ( resolvedPath ) ) {
4343 return resolvedPath ;
4444 }
45- } catch {
46- // Fails silently as the file is optional
45+ throw new Error ( `Server configuration file not found: ${ resolvedPath } ` ) ;
46+ } catch ( e ) {
47+ throw new Error ( `Error resolving server configuration file: ${ options . serverConfigFile } . Cause: ${ e } ` ) ;
4748 }
4849 }
4950 for ( const ext of possibleFileExtensions ) {
@@ -57,8 +58,9 @@ export async function findDefaultSdkInitFile(
5758 if ( fs . existsSync ( resolvedPath ) ) {
5859 return resolvedPath ;
5960 }
60- } catch {
61- // Fails silently as the file is optional
61+ throw new Error ( `Client configuration file not found: ${ resolvedPath } ` ) ;
62+ } catch ( e ) {
63+ throw new Error ( `Error resolving client configuration file: ${ options . clientConfigFile } . Cause: ${ e } ` ) ;
6264 }
6365 }
6466 for ( const ext of possibleFileExtensions ) {
You can’t perform that action at this time.
0 commit comments