feat: verbose Failed to fetch error (#6938)

* feat: verbose Failed to fetch error

* refactor: disable console.error in src/core/plugins/spec/actions.js

Co-authored-by: Tim Lai <timothy.lai@gmail.com>
This commit is contained in:
Mahtis Michel
2021-02-24 23:32:25 +01:00
committed by GitHub
parent b3e08ff8a2
commit 4db2edcad2
2 changed files with 12 additions and 9 deletions

View File

@@ -69,6 +69,7 @@ export default class LiveResponse extends React.Component {
return <span className="headerline" key={key}> {key}: {joinedHeaders} </span>
})
const hasHeaders = returnObject.length !== 0
const Markdown = getComponent("Markdown", true)
return (
<div>
@@ -101,9 +102,7 @@ export default class LiveResponse extends React.Component {
</td>
<td className="response-col_description">
{
isError ? <span>
{`${response.get("name")}: ${response.get("message")}`}
</span>
isError ? <Markdown source={`${response.get("name") !== "" ? `${response.get("name")}: ` : ""}${response.get("message")}`}/>
: null
}
{