File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ui/src/main/java/com/wireguard/android/util Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ object ErrorMessages {
92
92
rootCause is ChecksumException -> {
93
93
resources.getString(R .string.error_qr_checksum)
94
94
}
95
- rootCause.message != null -> {
96
- rootCause.message !!
95
+ rootCause.localizedMessage != null -> {
96
+ rootCause.localizedMessage !!
97
97
}
98
98
else -> {
99
99
val errorType = rootCause.javaClass.simpleName
@@ -109,7 +109,7 @@ object ErrorMessages {
109
109
if (kfe!! .type == KeyFormatException .Type .LENGTH ) return resources.getString(KFE_FORMAT_MAP .getValue(kfe.format))
110
110
} else if (bce.cause is ParseException ) {
111
111
val pe = bce.cause as ParseException ?
112
- if (pe!! .message != null ) return " : ${pe.message } "
112
+ if (pe!! .localizedMessage != null ) return " : ${pe.localizedMessage } "
113
113
} else if (bce.location == BadConfigException .Location .LISTEN_PORT ) {
114
114
return resources.getString(R .string.bad_config_explanation_udp_port)
115
115
} else if (bce.location == BadConfigException .Location .MTU ) {
You can’t perform that action at this time.
0 commit comments