Skip to content

Commit 3d47c68

Browse files
committed
Make action failures errors
Otherwise they will not surface to the user (as an error bubble at the bottom).
1 parent 6698311 commit 3d47c68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class CoderWorkspacesStepView(
284284
it.startWorkspace(workspace)
285285
loadWorkspaces()
286286
} catch (e: WorkspaceResponseException) {
287-
logger.warn("Could not build workspace ${workspace.name}, reason: $e")
287+
logger.error("Could not start workspace ${workspace.name}, reason: $e")
288288
}
289289
}
290290
}
@@ -345,9 +345,9 @@ class CoderWorkspacesStepView(
345345
loadWorkspaces()
346346
}
347347
} catch (e: WorkspaceResponseException) {
348-
logger.warn("Could not update workspace ${workspace.name}, reason: $e")
348+
logger.error("Could not update workspace ${workspace.name}, reason: $e")
349349
} catch (e: TemplateResponseException) {
350-
logger.warn("Could not update workspace ${workspace.name}, reason: $e")
350+
logger.error("Could not update workspace ${workspace.name}, reason: $e")
351351
}
352352
}
353353
}
@@ -369,7 +369,7 @@ class CoderWorkspacesStepView(
369369
it.stopWorkspace(workspace)
370370
loadWorkspaces()
371371
} catch (e: WorkspaceResponseException) {
372-
logger.warn("Could not stop workspace ${workspace.name}, reason: $e")
372+
logger.error("Could not stop workspace ${workspace.name}, reason: $e")
373373
}
374374
}
375375
}

0 commit comments

Comments
 (0)