aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/NewPaste.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-25 23:05:04 -0700
committerjackyzha0 <[email protected]>2020-05-25 23:05:04 -0700
commit0568ee72bd05ed16cf5250a444d936821c42b524 (patch)
treef9f1b1fcc58a9b5658579cf68e3025f15719abf3 /frontend/src/components/NewPaste.js
parentadd icon, fix title, add content to meta (diff)
downloadctrl-v-0568ee72bd05ed16cf5250a444d936821c42b524.tar.xz
ctrl-v-0568ee72bd05ed16cf5250a444d936821c42b524.zip
various fixes
Diffstat (limited to 'frontend/src/components/NewPaste.js')
-rw-r--r--frontend/src/components/NewPaste.js3
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>
);