Skip to content

Commit 6f8840c

Browse files
authored
fix(cli): prevent shadowed error function
Because the error function was shadowed by the caught error, you'd see an error like: Error: error is not a function This prevents the error function from being shadowed so that it is still callable.
1 parent f1f506d commit 6f8840c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/commands/generic.js.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const whoami = new Command("whoami")
122122
sdk: client,
123123
parseOutput: false
124124
});
125-
} catch (error) {
125+
} catch (_) {
126126
error("No user is signed in. To sign in, run 'appwrite login'");
127127
return;
128128
}

0 commit comments

Comments
 (0)