Skip to content

Commit

Permalink
feat(server): Throw an exception when env file is not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jan 13, 2021
1 parent 49685d3 commit abff7fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cubejs-server/src/server/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ export class ServerContainer {
}

public async lookupConfiguration(): Promise<CreateOptions> {
dotenv.config();
const { error } = dotenv.config();
if (error) {
throw new Error(error.message);
}

const devMode = getEnv('devMode');
if (devMode) {
Expand Down

0 comments on commit abff7fc

Please sign in to comment.