Skip to content

Commit ac13f26

Browse files
authored
fix(messages): misleading error when downloading a Lambda #3708
fix #3707
1 parent c4f4462 commit ac13f26

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "misleading error when downloading a Lambda to a workspace without a folder"
4+
}

src/lambda/commands/downloadLambda.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ async function runDownloadLambda(functionNode: LambdaFunctionNode): Promise<Resu
4242

4343
if (workspaceFolders.length === 0) {
4444
vscode.window.showErrorMessage(
45-
localize('AWS.lambda.download.noWorkspaceFolders', 'Open a workspace before downloading a Lambda function.')
45+
localize(
46+
'AWS.lambda.download.noWorkspaceFolders',
47+
'Open a workspace and add a folder to it before downloading a Lambda function.'
48+
)
4649
)
4750
return 'Cancelled'
4851
}

0 commit comments

Comments
 (0)