From 6574df3d2f91f891b6223db31a3fa03e94d80d9e Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 22 Jan 2019 16:47:08 +0300 Subject: [PATCH] [LogCat] Changed tag and added log message for invalid-formatted URL situation. --- .../main/java/ru/volgorobot/vrcatalog/view/MainActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java b/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java index a89b0f9..01295d9 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java @@ -118,18 +118,19 @@ public class MainActivity extends AppCompatActivity switch (errorCode) { case 1: { Toast.makeText(MainActivity.this, "Ошибка сети. Проверьте подключение к сети или данные подключения к API!", Toast.LENGTH_LONG).show(); - Log.e("VRCatalog", "Network Error! Re-check your connection credentials or network settings! Technical info: null"); + Log.e("MainActivity", "Network Error! Re-check your connection credentials or network settings!"); mSwipeRefreshLayout.setRefreshing(false); break; } case 2: { Toast.makeText(MainActivity.this, "Ответ от сервера неверен! Перепроверьте данные подключения!", Toast.LENGTH_LONG).show(); - Log.e("VRCatalog", "Answer of server is wrong! Re-check your connection credentials! Technical info: null"); + Log.e("MainActivity", "Answer of server is wrong! Re-check your connection credentials!"); mSwipeRefreshLayout.setRefreshing(false); break; } case 3: { Toast.makeText(this, "Вы ввели неверный URL. Пример: http://example.ru", Toast.LENGTH_LONG).show(); + Log.e("MainActivity", "Invalid-formatted URL. Please, check URL (change his if it need) and try again."); mSwipeRefreshLayout.setRefreshing(false); break; }