diff --git a/app/src/main/java/app/fedilab/android/peertube/client/RetrofitPeertubeAPI.java b/app/src/main/java/app/fedilab/android/peertube/client/RetrofitPeertubeAPI.java
index 14fa77b3..9de1ee43 100644
--- a/app/src/main/java/app/fedilab/android/peertube/client/RetrofitPeertubeAPI.java
+++ b/app/src/main/java/app/fedilab/android/peertube/client/RetrofitPeertubeAPI.java
@@ -33,6 +33,8 @@ import android.webkit.URLUtil;
import androidx.documentfile.provider.DocumentFile;
import androidx.preference.PreferenceManager;
+import com.google.gson.JsonSyntaxException;
+
import org.jetbrains.annotations.NotNull;
import org.json.JSONException;
import org.json.JSONObject;
@@ -1188,9 +1190,9 @@ public class RetrofitPeertubeAPI {
}
throw error;
}
- } catch (IOException e) {
+ } catch (IOException | JsonSyntaxException e) {
Error error = new Error();
- error.setError(_context.getString(R.string.toast_error));
+ error.setError(_context.getString(R.string.toast_error_peertube_not_supported));
apiResponse.setError(error);
e.printStackTrace();
}
diff --git a/app/src/main/res/layouts/mastodon/values/strings.xml b/app/src/main/res/layouts/mastodon/values/strings.xml
deleted file mode 100644
index 1c0897ec..00000000
--- a/app/src/main/res/layouts/mastodon/values/strings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- Compose
-
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c7fb49e6..95f6baf4 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -2228,4 +2228,7 @@
Change subscribed languages
Filter languages
Translate in
+
+ Compose
+ Your Peertube is too old and cannot be supported by the app.
\ No newline at end of file