Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Dec 19, 2024
1 parent 7530f13 commit 18d67cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/cli/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { readFileSync } from 'fs';
import merge from 'lodash/merge';
import { Logger } from 'n8n-core';
import { ApplicationError, setGlobalState } from 'n8n-workflow';
import assert from 'node:assert';
import colors from 'picocolors';
import { Container } from 'typedi';

Expand Down Expand Up @@ -63,7 +64,8 @@ if (!inE2ETests && !inTest) {
}
logger.debug(`Loaded config overwrites from ${configFile}`);
} catch (error) {
logger.error(`Error loading config file ${configFile}`, { error: error as Error });
assert(error instanceof Error);
logger.error(`Error loading config file ${configFile}`, { error });
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/InstanceSettingsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export class InstanceSettingsConfig {
* The home folder path of the user.
* If none can be found it falls back to the current working directory
*/
public readonly userHome: string;
readonly userHome: string;

public readonly n8nFolder: string;
readonly n8nFolder: string;

constructor() {
const homeVarName = process.platform === 'win32' ? 'USERPROFILE' : 'HOME';
Expand Down

0 comments on commit 18d67cc

Please sign in to comment.