Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ final case class InsufficientComputingResource(resourceType: String)
// User has reached the per-user CU-quota (number of running units)
final case class InsufficientComputingUnitQuota(maxNumberOfComputingUnit: Int)
extends ComputingUnitManagingServiceException(
s"You may only have $maxNumberOfComputingUnit computing-unit(s) running at the same time"
s"You may only have $maxNumberOfComputingUnit computing unit(s) running at the same time. " +
"Reuse a running computing unit, terminate a Kubernetes unit, or disconnect a local unit you no longer need."
)

// default exception fallback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ class ComputingUnitManagingServiceExceptionSpec extends AnyFlatSpec with Matcher
"Insufficient CPU available in the server. Please decrease the requested amount or try again later."
}

"InsufficientComputingUnitQuota" should "render the quota message" in {
"InsufficientComputingUnitQuota" should "render the quota message and how to free a slot" in {
InsufficientComputingUnitQuota(3).getMessage shouldBe
"You may only have 3 computing-unit(s) running at the same time"
"You may only have 3 computing unit(s) running at the same time. " +
"Reuse a running computing unit, terminate a Kubernetes unit, or disconnect a local unit you no longer need."
}

"InternalError" should "default to a generic message" in {
Expand Down
Loading