Skip to content

Commit 885f6a6

Browse files
committed
paramValue in malformed dataset id list exception
1 parent 225f6fd commit 885f6a6

File tree

1 file changed

+2
-1
lines changed
  • scenariorun/src/main/kotlin/com/cosmotech/scenariorun/dataset

1 file changed

+2
-1
lines changed

scenariorun/src/main/kotlin/com/cosmotech/scenariorun/dataset/DatasetUtils.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ private fun addParameterValue(
8686
internal fun getDatasetIdListFromValue(paramValue: String): List<String> {
8787
if (paramValue.startsWith("[")) {
8888
if (!(paramValue.last().equals(']'))) {
89-
throw CsmClientException("Malformed dataset id list: must start with [ and end with ]")
89+
throw CsmClientException(
90+
"Malformed dataset id list, must start with [ and end with ]: ${paramValue}")
9091
}
9192
val datasetIds = paramValue.substring(1, paramValue.length - 1)
9293
return datasetIds.split(",")

0 commit comments

Comments
 (0)