diff options
| author | Ryan Mehri <[email protected]> | 2020-05-26 10:20:15 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-26 10:20:15 -0600 |
| commit | 8b69751d9276a99d5150e0efac0ccd16a5c970c6 (patch) | |
| tree | f7851f60131b77676102aaf2c019b1f37d28f1c3 /frontend/src/components/NewPaste.js | |
| parent | Merge pull request #34 from jackyzha0/firebase (diff) | |
| parent | fix coderenderer not loading all langs (diff) | |
| download | ctrl-v-8b69751d9276a99d5150e0efac0ccd16a5c970c6.tar.xz ctrl-v-8b69751d9276a99d5150e0efac0ccd16a5c970c6.zip | |
Merge pull request #35 from jackyzha0/fixing-html
various fixes
Diffstat (limited to 'frontend/src/components/NewPaste.js')
| -rw-r--r-- | frontend/src/components/NewPaste.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js index 8012b99..f17c8b4 100644 --- a/frontend/src/components/NewPaste.js +++ b/frontend/src/components/NewPaste.js @@ -91,7 +91,7 @@ class NewPaste extends React.Component { // some weird err if (resp !== undefined) { - const errTxt = `${resp.statusText}: ${resp.data}` + const errTxt = `${resp.status}: ${resp.data}` this.ErrorLabel.current.showMessage(errTxt) } else { // some weird err (e.g. network) @@ -165,6 +165,7 @@ class NewPaste extends React.Component { onClick={this.togglePreview} > preview </Button> + <br /> <Error ref={this.ErrorLabel} /> </form> ); |