Skip to content

Commit a6e1cd8

Browse files
committed
more very specific error messages when conda can't be installed
1 parent c4179cc commit a6e1cd8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/renderer/components/Connect/LocalConnection.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import { useCheckLocalConnection } from 'renderer/lib/transformerlab-api-sdk';
1515

1616
import LargeTooltip from './LargeTooltip';
1717
import LogViewer from './LogViewer';
18+
import { BsFillFileEarmarkPersonFill } from 'react-icons/bs';
19+
import { error } from 'console';
1820

1921
// Runs a callback every delay milliseconds, up to repetitions times.
2022
// If the callback returns true, the interval is cleared.
@@ -415,6 +417,12 @@ function InstallStepper({ setServer }) {
415417
if (installConda?.error) {
416418
setInstallStatus('error');
417419
setErrorMessage(installConda?.stderr);
420+
alert(
421+
'Conda could not be installed. Try running "~/.transformerlab/src/install.sh install_conda" in your terminal. This can sometimes be caused by a file permission error where the ~/.conda directory on your machine is not accessible to your user account.'
422+
);
423+
setThinking(false);
424+
setActiveStep(Steps.indexOf('CHECK_IF_INSTALLED'));
425+
setUserRequestedInstall(false);
418426
}
419427
const condaExists = await window.electron.ipcRenderer.invoke(
420428
'server:checkIfCondaExists'
@@ -604,7 +612,7 @@ function InstallStepper({ setServer }) {
604612
{installStatus === 'error' && (
605613
<Alert variant="outlined" color="danger" sx={{ my: 2 }}>
606614
{installErrorMessage} {errorMessage?.message}{' '}
607-
{JSON.stringify(errorMessage?.data)}
615+
{JSON.stringify(errorMessage?.data)} {errorMessage}
608616
</Alert>
609617
)}
610618
<div style={{ flex: 1, overflow: 'auto' }}>

0 commit comments

Comments
 (0)