diff --git a/2024/src/main/kotlin/Utils.kt b/2024/src/main/kotlin/Utils.kt index 232ead7..b6e6693 100644 --- a/2024/src/main/kotlin/Utils.kt +++ b/2024/src/main/kotlin/Utils.kt @@ -1,8 +1,8 @@ fun readInput(name: String) = bufferedReader(name) ?.lineSequence() - ?: error("Cannot read input") + ?: error("Cannot read input $name") -fun readInputString(name: String): String = bufferedReader(name)?.readText() ?: error("Cannot read input") +fun readInputString(name: String): String = bufferedReader(name)?.readText() ?: error("Cannot read input $name") private fun bufferedReader(name: String) = object {}.javaClass.getResourceAsStream(name) ?.bufferedReader()