Skip to content

Commit

Permalink
Remove misleading message about PATH.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribenes committed Sep 17, 2024
1 parent ceb9c1b commit 7f227b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/effektManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,11 @@ export class EffektManager {
return {
success: true,
executable: execPath,
message: execPath.includes(path.sep)
? `Effekt found at ${execPath}, but not in PATH.`
: "Effekt found in PATH.",
message: `Effekt found successfully in ${execPath}.`,
version
};
} catch (error) {
// If getEffektExecutable fails, try to locate in global npm directory
// If locateEffektExecutable fails, try to locate in global npm directory
const npmRoot = await this.execCommand('npm root -g');

for (const execName of this.possibleEffektExecutables) {
Expand Down

0 comments on commit 7f227b3

Please sign in to comment.