From d24d07e42078f46162d5f315361b973b7f686efd Mon Sep 17 00:00:00 2001 From: Andrius Petrauskis <2466985+andriuspetrauskis@users.noreply.github.com> Date: Thu, 2 Dec 2021 19:44:26 +0200 Subject: [PATCH] fix: show an error when pre-request script fails (#1991) * fix: show an error when pre-request script fails * refactor: minor ui improvements Co-authored-by: Liyas Thomas --- .../components/http/Request.vue | 16 ++++++++-- .../components/http/ResponseMeta.vue | 29 ++++++++++++++++++- .../hoppscotch-app/helpers/RequestRunner.ts | 2 +- .../helpers/types/HoppRESTResponse.ts | 4 +++ packages/hoppscotch-app/locales/af.json | 2 ++ packages/hoppscotch-app/locales/ar.json | 2 ++ packages/hoppscotch-app/locales/ca.json | 2 ++ packages/hoppscotch-app/locales/cn.json | 2 ++ packages/hoppscotch-app/locales/cs.json | 2 ++ packages/hoppscotch-app/locales/da.json | 2 ++ packages/hoppscotch-app/locales/de.json | 2 ++ packages/hoppscotch-app/locales/el.json | 2 ++ packages/hoppscotch-app/locales/en.json | 2 ++ packages/hoppscotch-app/locales/es.json | 2 ++ packages/hoppscotch-app/locales/fi.json | 2 ++ packages/hoppscotch-app/locales/fr.json | 2 ++ packages/hoppscotch-app/locales/he.json | 2 ++ packages/hoppscotch-app/locales/hu.json | 2 ++ packages/hoppscotch-app/locales/it.json | 2 ++ packages/hoppscotch-app/locales/ja.json | 2 ++ packages/hoppscotch-app/locales/ko.json | 2 ++ packages/hoppscotch-app/locales/nl.json | 2 ++ packages/hoppscotch-app/locales/no.json | 2 ++ packages/hoppscotch-app/locales/pl.json | 2 ++ packages/hoppscotch-app/locales/pt-br.json | 2 ++ packages/hoppscotch-app/locales/pt.json | 2 ++ packages/hoppscotch-app/locales/ro.json | 2 ++ packages/hoppscotch-app/locales/ru.json | 2 ++ packages/hoppscotch-app/locales/sr.json | 2 ++ packages/hoppscotch-app/locales/sv.json | 2 ++ packages/hoppscotch-app/locales/tr.json | 2 ++ packages/hoppscotch-app/locales/tw.json | 2 ++ packages/hoppscotch-app/locales/uk.json | 2 ++ packages/hoppscotch-app/locales/vi.json | 2 ++ .../hoppscotch-app/newstore/RESTSession.ts | 5 +++- .../hoppscotch-js-sandbox/src/preRequest.ts | 2 +- 36 files changed, 112 insertions(+), 6 deletions(-) diff --git a/packages/hoppscotch-app/components/http/Request.vue b/packages/hoppscotch-app/components/http/Request.vue index a011b1802..5423265db 100644 --- a/packages/hoppscotch-app/components/http/Request.vue +++ b/packages/hoppscotch-app/components/http/Request.vue @@ -185,7 +185,7 @@