Skip to content

Commit 185d106

Browse files
committed
add spaceName variable in the warning message
1 parent f37506b commit 185d106

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/src/awsService/sagemaker/commands.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,12 @@ export async function stopSpace(
135135
) {
136136
await tryRefreshNode(node)
137137
if (node.getStatus() === 'Stopped' || node.getStatus() === 'Stopping') {
138-
void vscode.window.showWarningMessage('This space is already in Stopped/Stopping state')
138+
void vscode.window.showWarningMessage(`Space ${node.spaceApp.SpaceName} is already in Stopped/Stopping state.`)
139139
return
140140
} else if (node.getStatus() === 'Starting') {
141-
void vscode.window.showWarningMessage('This space is starting, please stop it later')
141+
void vscode.window.showWarningMessage(
142+
`Space ${node.spaceApp.SpaceName} is in Starting state. Wait until it is Running to attempt stop again.`
143+
)
142144
return
143145
}
144146
const spaceName = node.spaceApp.SpaceName!

0 commit comments

Comments
 (0)