mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-29 00:22:47 +00:00
proper error page
This commit is contained in:
@@ -5,9 +5,11 @@ const Markdown = require('../../../../shared/naturalcrit/markdown.js');
|
||||
const ErrorIndex = require('./errors/errorIndex.js');
|
||||
|
||||
const ErrorPage = ({ brew })=>{
|
||||
|
||||
// Retrieving the error text based on the brew's error code from ErrorIndex
|
||||
const errorText = ErrorIndex({ brew })[brew.HBErrorCode.toString()] || '';
|
||||
|
||||
console.log(errorText);
|
||||
|
||||
return (
|
||||
<UIPage brew={{ title: 'Crit Fail!' }}>
|
||||
<div className='dataGroup'>
|
||||
|
||||
@@ -147,6 +147,22 @@ const errorIndex = (props)=>{
|
||||
**Brew ID:** ${props.brew.brewId}
|
||||
|
||||
**Brew Title:** ${props.brew.brewTitle}`,
|
||||
|
||||
'470' : dedent`
|
||||
## You have runned out of attempts
|
||||
|
||||
You are trying to access the admin page, reserved for the administrators of this tool.
|
||||
This is not a page where regular users should be, please, refrain from further access attempts.
|
||||
|
||||
:
|
||||
|
||||
If you are a part of the administrators team who does not remember the correct credentials,
|
||||
please get in contact with the rest of the team before trying again.
|
||||
|
||||
:
|
||||
|
||||
In any case, your attempts have been logged, and you will not be capable of doing any more attempt for now.
|
||||
`,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user