We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a73ecd3 commit bcdf43cCopy full SHA for bcdf43c
denops/fall/config.ts
@@ -66,10 +66,16 @@ export async function loadUserConfig(
66
const { main } = await import(`${path}${suffix ?? ""}`);
67
reset();
68
await main(ctx);
69
- } catch (e) {
70
- console.warn(
71
- `Failed to load user config. Fallback to the default config: ${e}`,
72
- );
+ } catch (err) {
+ if (err instanceof Deno.errors.NotFound) {
+ console.debug(
+ `User config not found: '${path}'. Fallback to the default config.`,
73
+ );
74
+ } else {
75
+ console.warn(
76
+ `Failed to load user config. Fallback to the default config: ${err}`,
77
78
+ }
79
const { main } = await import(
80
new URL("./_assets/default.config.ts", import.meta.url).href
81
);
0 commit comments