Skip to content

Commit 7a7c0fd

Browse files
Kamil Bieleckisschuberth
authored andcommitted
feat(fossid): Extend logging for FossID project access issues
This commit adds additional logging of errors caused by FossID access issues. Signed-off-by: Kamil Bielecki <[email protected]>
1 parent 8f6fa62 commit 7a7c0fd

File tree

1 file changed

+5
-1
lines changed
  • plugins/scanners/fossid/src/main/kotlin

1 file changed

+5
-1
lines changed

plugins/scanners/fossid/src/main/kotlin/FossId.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,11 @@ class FossId internal constructor(
247247
null
248248
}
249249

250-
else -> throw IOException("Could not get project. Additional information : $error")
250+
else -> {
251+
val errorMessage = "Could not get project '$projectCode' for user '${config.user.value}: $error'"
252+
logger.error(errorMessage)
253+
throw IOException(errorMessage)
254+
}
251255
}
252256
}
253257

0 commit comments

Comments
 (0)