From fed28527ae2da51deafc3dccfab66495402246dc6ddb533ce72a1a9d8eacb696 Mon Sep 17 00:00:00 2001 From: AidarKC Date: Mon, 16 Nov 2026 10:03:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D1=82=D1=8C=20=D0=BB?= =?UTF-8?q?=D0=BE=D0=B6=D0=BD=D0=BE=D0=B5=20=D0=BF=D1=80=D0=B5=D0=B4=D1=83?= =?UTF-8?q?=D0=BF=D1=80=D0=B5=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE?= =?UTF-8?q?=20=D1=80=D0=BE=D1=82=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BA=D0=BB?= =?UTF-8?q?=D1=8E=D1=87=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.properties | 2 +- shine-UI/js/services/key-rotation-service.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/VERSION.properties b/VERSION.properties index f5027dbe..7fefe937 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.20.48 +client.version=1.20.49 server.version=1.16.25 diff --git a/shine-UI/js/services/key-rotation-service.js b/shine-UI/js/services/key-rotation-service.js index 71057adf..bdd36923 100644 --- a/shine-UI/js/services/key-rotation-service.js +++ b/shine-UI/js/services/key-rotation-service.js @@ -12,9 +12,11 @@ function payload(resp) { return resp?.payload && typeof resp.payload === 'object function assertOk(resp, op) { if (Number(resp?.status) >= 200 && Number(resp?.status) < 300) return payload(resp); const p = payload(resp); - const message = p?.message || p?.error || p?.code || `${op} failed (${resp?.status ?? '?'})`; + const responseCode = resp?.code || resp?.error || resp?.errorCode || ''; + const responseMessage = resp?.message || ''; + const message = p?.message || p?.error || p?.code || responseMessage || responseCode || `${op} failed (${resp?.status ?? '?'})`; const error = new Error(String(message)); - error.code = p?.code || p?.errorCode || ''; + error.code = p?.code || p?.errorCode || responseCode; error.response = resp; throw error; }