Skip to content

Commit

Permalink
fix: a better exception for local.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz committed Aug 31, 2024
1 parent acd0e9e commit 582d33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ fun getLocalProperty(key: String, file: String = "local.properties"): String {
InputStreamReader(FileInputStream(localProperties), Charsets.UTF_8).use { reader ->
properties.load(reader)
}
} else error("File from not found")
} else throw IllegalArgumentException("File from not found")

return properties.getProperty(key)
}

0 comments on commit 582d33e

Please sign in to comment.