From 0568ee72bd05ed16cf5250a444d936821c42b524 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Mon, 25 May 2020 23:05:04 -0700 Subject: various fixes --- frontend/src/components/NewPaste.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend/src/components/NewPaste.js') 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 +
); -- cgit v1.2.3