0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 00:42:40 +00:00

"Update ArchivePage: erase brewcount when new query, modify error messages for 503 and 500 status codes"

This commit is contained in:
Víctor Losada Hernández
2024-05-18 23:19:25 +02:00
parent a711f8eb89
commit 3d0a9ea805

View File

@@ -92,6 +92,7 @@ const ArchivePage = createClass({
pageSize: size,
v3: v3,
legacy: legacy,
totalBrews: null,
});
this.updateUrl(title, page, size, v3, legacy);
}
@@ -344,10 +345,10 @@ const ArchivePage = createClass({
break;
case '503':
errorMessage =
' 503 - Your search is not specific enough. Too many brews meet this criteria for us to display them.';
' 503 - Service Unavailable, try again later, sorry.';
break;
case '500':
errorMessage = "500 - We don't know what happened.";
errorMessage = "500 - We don't know what happened, go ahead and contact the mods or report as a mistake.";
default:
errorMessage = 'An unexpected error occurred';
}