diff --git a/vscode/src/qirGeneration.ts b/vscode/src/qirGeneration.ts index 02cba8b83a..69e56b323e 100644 --- a/vscode/src/qirGeneration.ts +++ b/vscode/src/qirGeneration.ts @@ -73,7 +73,7 @@ export async function getQirForActiveWindow(): Promise { } catch (e: any) { log.error("Codegen error. ", e.toString()); throw new QirGenerationError( - "Code generation failed. Please ensure the code is compatible with the QIR base profile " + + `Code generation failed due to error: "${e.toString()}". Please ensure the code is compatible with the QIR base profile ` + "by setting the target QIR profile to 'base' and fixing any errors." ); } finally {