diff --git a/src/ui/components/BuildResponse/index.tsx b/src/ui/components/BuildResponse/index.tsx index 6c34f8ab4..077a6633e 100644 --- a/src/ui/components/BuildResponse/index.tsx +++ b/src/ui/components/BuildResponse/index.tsx @@ -4,21 +4,25 @@ import { SxProps, Theme } from '@mui/system'; import { BuildFirmwareErrorType, BuildFlashFirmwareResult, + FirmwareVersionDataInput, } from '../../gql/generated/types'; +import DocumentationLink from '../DocumentationLink'; const styles: SxProps = { errorMessage: { - whiteSpace: 'pre-wrap', - fontFamily: 'monospace', + a: { + color: 'white', + }, }, }; interface BuildResponseProps { response: BuildFlashFirmwareResult | undefined; + firmwareVersionData: FirmwareVersionDataInput | null; } const BuildResponse: FunctionComponent = memo( - ({ response }) => { + ({ response, firmwareVersionData }) => { // TODO: translations const toTitle = (errorType: BuildFirmwareErrorType | undefined): string => { if (errorType === null || errorType === undefined) { @@ -55,7 +59,42 @@ const BuildResponse: FunctionComponent = memo( response?.errorType ?? BuildFirmwareErrorType.GenericError )} - {response?.message} +

+ An error has occured, see the above log for the exact error + message. If you have not already done so, visit{' '} + + Expresslrs.org + {' '} + and read the{' '} + + Flashing Guide + {' '} + for your particular device as well as the{' '} + + Troubleshooting Guide + + . If you are still having issues after reviewing the + documentation, please copy the build logs above to an online paste + site and post in the #help-and-support channel on the{' '} + + ExpressLRS Discord + {' '} + with a link to the logs and other relevant information like your + device, which flashing method you were using, and what steps you + have already taken to resolve the issue. +

)} diff --git a/src/ui/views/ConfiguratorView/index.tsx b/src/ui/views/ConfiguratorView/index.tsx index f778c3d53..20537c773 100644 --- a/src/ui/views/ConfiguratorView/index.tsx +++ b/src/ui/views/ConfiguratorView/index.tsx @@ -1065,7 +1065,10 @@ const ConfiguratorView: FunctionComponent = (props) => { active={!buildInProgress} > - + {response?.buildFlashFirmware?.success && hasLuaScript && ( <>