From 2d2352f2c554d326edd98ee1bcbc00df842b1a85 Mon Sep 17 00:00:00 2001 From: Piotr Magiera <56825108+piotmag769@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:37:07 +0100 Subject: [PATCH] Improve error message for failed metadata (#6598) --- vscode-cairo/src/cairols.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vscode-cairo/src/cairols.ts b/vscode-cairo/src/cairols.ts index bfcda402a93..e92a576fc9e 100644 --- a/vscode-cairo/src/cairols.ts +++ b/vscode-cairo/src/cairols.ts @@ -117,11 +117,14 @@ export async function setupLanguageServer(ctx: Context): Promise { - const goToOutput = "Go to output"; + const goToLogs = "Go to logs"; - const selectedValue = await vscode.window.showErrorMessage("Scarb metadata failed", goToOutput); + const selectedValue = await vscode.window.showErrorMessage( + "`scarb metadata` failed. Check if your project builds correctly via `scarb build`.", + goToLogs, + ); - if (selectedValue === goToOutput) { + if (selectedValue === goToLogs) { client.outputChannel.show(true); } });