Skip to content

Commit f1e683e

Browse files
keep error stack when fail to load
1 parent a0f5f1e commit f1e683e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AzureAppConfigurationImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
260260
await new Promise(resolve => setTimeout(resolve, MIN_DELAY_FOR_UNHANDLED_FAILURE - timeElapsed));
261261
}
262262
}
263-
throw new Error(`Failed to load: ${error.message}`);
263+
throw new Error("Failed to load.", { cause: error });
264264
} finally {
265265
clearTimeout(timeoutId); // cancel the timeout promise
266266
}

0 commit comments

Comments
 (0)