Skip to content

Commit

Permalink
Change wording
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelpasterz committed Jul 1, 2020
1 parent cb1b3fd commit 18f0307
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_runner/src/main/kotlin/ftl/gc/GcToolResults.kt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ object GcToolResults {
fun getDefaultBucket(projectId: String): String? = try {
service.Projects().initializeSettings(projectId).executeWithRetry().defaultBucket
} catch (ftlProjectError: FTLProjectError) {
// flank need to rewrap exception with additional info about project
// flank needs to rewrap the exception with additional info about project
when (ftlProjectError) {
is PermissionDenied -> throw FlankCommonException(permissionDeniedErrorMessage(projectId, ftlProjectError.message))
is ProjectNotFound -> throw FlankCommonException(projectNotFoundErrorMessage(projectId, ftlProjectError.message))
Expand All @@ -131,14 +131,14 @@ object GcToolResults {

private val permissionDeniedErrorMessage = { projectId: String, message: String? ->
"""Flank encountered a 403 error when running on project $projectId. Please verify this credential is authorized for the project.
Consider authentication with Service Account https://github.com/Flank/flank#authenticate-with-a-service-account
or with Google account https://github.com/Flank/flank#authenticate-with-a-google-account
Consider authentication with a Service Account https://github.com/Flank/flank#authenticate-with-a-service-account
or with a Google account https://github.com/Flank/flank#authenticate-with-a-google-account
$message""".trimIndent()
}

private val projectNotFoundErrorMessage = { projectId: String, message: String? ->
"""Flank was unable to find project $projectId. Please verify project id.
"""Flank was unable to find project $projectId. Please verify the project id.
$message""".trimIndent()
}

0 comments on commit 18f0307

Please sign in to comment.