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 <liyascthomas@gmail.com>
This commit is contained in:
committed by
GitHub
parent
cc81242294
commit
d24d07e420
@@ -42,7 +42,7 @@ const getTestableBody = (res: HoppRESTResponse & { type: "success" }) => {
|
||||
}
|
||||
|
||||
export const runRESTRequest$ = (): TaskEither<
|
||||
string,
|
||||
string | Error,
|
||||
Observable<HoppRESTResponse>
|
||||
> =>
|
||||
pipe(
|
||||
|
||||
@@ -21,6 +21,10 @@ export type HoppRESTResponse =
|
||||
|
||||
req: HoppRESTRequest
|
||||
}
|
||||
| {
|
||||
type: "script_fail"
|
||||
error: Error
|
||||
}
|
||||
| {
|
||||
type: "success"
|
||||
headers: { key: string; value: string }[]
|
||||
|
||||
Reference in New Issue
Block a user