Skip to content

Commit

Permalink
Merge branch 'backend-check-message'
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Aug 12, 2024
2 parents 6e2f3ee + 65f8a4b commit a6184a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vscode/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ export async function activate(context: vscode.ExtensionContext) {
if (!modalitydIsAlive) {
const msg =
`The Auxon Modality backend server cannot be reached at '${apiUrl}'. ` +
`If modalityd is not running locally, set the 'auxon.modalityUrl' configuration`;
throw new Error(msg);
`If modalityd is not running locally, change the 'auxon.modalityUrl' extension setting and refresh the extension.`;
await vscode.window.showErrorMessage(msg);

// Can't do anything until the backend is reachable, this prevents a cascade of failures
// from being shown
return;
}

// If this is a fresh install, prompt for new first user creation
Expand Down

0 comments on commit a6184a0

Please sign in to comment.