diff options
| author | jackyzha0 <[email protected]> | 2020-05-25 23:05:04 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-25 23:05:04 -0700 |
| commit | 0568ee72bd05ed16cf5250a444d936821c42b524 (patch) | |
| tree | f9f1b1fcc58a9b5658579cf68e3025f15719abf3 /frontend/src/components/ViewPaste.js | |
| parent | add icon, fix title, add content to meta (diff) | |
| download | ctrl-v-0568ee72bd05ed16cf5250a444d936821c42b524.tar.xz ctrl-v-0568ee72bd05ed16cf5250a444d936821c42b524.zip | |
various fixes
Diffstat (limited to 'frontend/src/components/ViewPaste.js')
| -rw-r--r-- | frontend/src/components/ViewPaste.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/ViewPaste.js b/frontend/src/components/ViewPaste.js index 30fb29e..117bb18 100644 --- a/frontend/src/components/ViewPaste.js +++ b/frontend/src/components/ViewPaste.js @@ -70,7 +70,7 @@ class ViewPaste extends React.Component { // otherwise, just log it lmao 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) @@ -166,7 +166,7 @@ class ViewPaste 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, -1) return } |