Skip to content

Commit bd434ce

Browse files
committed
fix: Improve exception message wording
1 parent 766a733 commit bd434ce

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/app/revanced/patcher/patch

1 file changed

+1
-1
lines changed

src/main/kotlin/app/revanced/patcher/patch/Option.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ sealed class OptionException(errorMessage: String) : Exception(errorMessage, nul
863863
*
864864
* @param option The [Option] that requires a value.
865865
*/
866-
class ValueRequiredException(option: Option<*>) : OptionException("The option ${option.key} requires a value, but null was passed")
866+
class ValueRequiredException(option: Option<*>) : OptionException("The option ${option.key} requires a value, but the value was null")
867867

868868
/**
869869
* An exception thrown when a [Option] is not found.

0 commit comments

Comments
 (0)