mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 15:10:47 +01:00
Improved error message
This commit is contained in:
@@ -739,8 +739,10 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
}
|
||||
|
||||
String json = data.toString();
|
||||
if (!json.startsWith("{") || !json.endsWith("}"))
|
||||
throw new BadPaddingException("JSON");
|
||||
if (!json.startsWith("{") || !json.endsWith("}")) {
|
||||
Log.i("Invalid JSON");
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_setup_password_invalid));
|
||||
}
|
||||
|
||||
Log.i("Importing data");
|
||||
JSONObject jimport = new JSONObject(json);
|
||||
|
||||
Reference in New Issue
Block a user