From cfae8eab28428cd5976ec45c0668671024d0d37c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Cort=C3=AAs?= Date: Wed, 11 Mar 2020 16:01:35 +0000 Subject: [PATCH 1/2] Update NotFound error message The token can now be either a project or account token --- src/main/scala/com/codacy/rules/ReportRules.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/codacy/rules/ReportRules.scala b/src/main/scala/com/codacy/rules/ReportRules.scala index 2e563ad3..dc1ebfc7 100644 --- a/src/main/scala/com/codacy/rules/ReportRules.scala +++ b/src/main/scala/com/codacy/rules/ReportRules.scala @@ -234,7 +234,7 @@ class ReportRules(coverageServices: => CoverageServices) extends StrictLogging { */ private[rules] def handleFailedResponse(response: FailedResponse): String = { if (response.message.contains("not found")) { - """Request URL not found. (Check if the project token or the API base URL are valid)""" + """Request URL not found. (Check if the token you are using or the API base URL are valid)""" } else { response.message } From 7e70b456b64af4035f387681dfb6f99cc9ee8a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Cort=C3=AAs?= Date: Wed, 11 Mar 2020 16:11:35 +0000 Subject: [PATCH 2/2] fix: Use a single quoted string Co-Authored-By: Lorenzo Gabriele --- src/main/scala/com/codacy/rules/ReportRules.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/codacy/rules/ReportRules.scala b/src/main/scala/com/codacy/rules/ReportRules.scala index dc1ebfc7..8dd435cc 100644 --- a/src/main/scala/com/codacy/rules/ReportRules.scala +++ b/src/main/scala/com/codacy/rules/ReportRules.scala @@ -234,7 +234,7 @@ class ReportRules(coverageServices: => CoverageServices) extends StrictLogging { */ private[rules] def handleFailedResponse(response: FailedResponse): String = { if (response.message.contains("not found")) { - """Request URL not found. (Check if the token you are using or the API base URL are valid)""" + "Request URL not found. (Check if the token you are using or the API base URL are valid)" } else { response.message }