Skip to content

Commit

Permalink
console error + remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hypervillain committed Feb 1, 2024
1 parent ff0190c commit 23819b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/start-slicemachine/src/StartSliceMachineProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ export class StartSliceMachineProcess {
});
try {
await this._setDevEnvAsActiveEnvironment();
} catch (_) {}
} catch (_) {
if (import.meta.env.DEV) {
console.error("Could not set dev env as active environment");
}
}
}

if (profile) {
Expand All @@ -146,7 +150,7 @@ export class StartSliceMachineProcess {
const maybeDevEnvironment = environments?.find((env) => env.kind === "dev");
if (maybeDevEnvironment !== undefined) {
await this._sliceMachineManager.project.updateEnvironment({
environment: maybeDevEnvironment?.domain,
environment: maybeDevEnvironment.domain,
});
}
}
Expand Down

0 comments on commit 23819b8

Please sign in to comment.