Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chores (phpmyadmin): Add insufficient-permission message #1694

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/commands/phpmyadmin.ts
Original file line number Diff line number Diff line change
@@ -201,6 +201,13 @@
stack: error.stack,
} );
this.stopProgressTracker();

if ( error.graphQLErrors?.find( e => e.message === 'Unauthorized' ) ) {

Check warning on line 205 in src/commands/phpmyadmin.ts

GitHub Actions / Lint

Identifier name 'e' is too short (< 2)
exit.withError(
'You do not have sufficient permission to access phpMyAdmin for this environment.'
);
}

exit.withError(
'Failed to enable PhpMyAdmin. Please try again. If the problem persists, please contact support.'
);