mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-14 04:12:43 +00:00
where is my 503 error code
This commit is contained in:
@@ -117,7 +117,7 @@ const ArchivePage = createClass({
|
|||||||
if (error.response && error.response.status === 503) {
|
if (error.response && error.response.status === 503) {
|
||||||
console.log('loadPage 503');
|
console.log('loadPage 503');
|
||||||
}
|
}
|
||||||
this.setState({ error: `${error}` });
|
this.setState({ error: `${error}` })
|
||||||
this.updateStateWithBrews([], 1, 1, 0);
|
this.updateStateWithBrews([], 1, 1, 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -259,7 +259,7 @@ const ArchivePage = createClass({
|
|||||||
if(title === '') {return (<div className='foundBrews noBrews'><h3>Whenever you want, just start typing...</h3></div>);}
|
if(title === '') {return (<div className='foundBrews noBrews'><h3>Whenever you want, just start typing...</h3></div>);}
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
console.log('render Error: ', error);
|
console.log('render Error: ', error.errorCode);
|
||||||
let errorMessage;
|
let errorMessage;
|
||||||
switch (error.errorCode) {
|
switch (error.errorCode) {
|
||||||
case '404':
|
case '404':
|
||||||
|
|||||||
Reference in New Issue
Block a user