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

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

Lines changed: 4 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy