Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check docker engine is prior to linting and give a useful error …
…when it is not (#1506) ## Description: Runs `docker version` prior to linting, to verify that docker engine is up. Throws an exception with a suitable error message if docker is down. The error is still a thrown stacktrace but now the message is correct. Looks like this: ``` ?1 kurtosis % ./cli/cli/scripts/launch-cli.sh lint --cli-log-level debug INFO[2023-10-10T14:05:56+01:00] This depends on 'pyfound/black:23.9.1'; first run may take a while as we might have to download it Error: An error occurred running command 'lint' --- at ...kurtosis/kurtosis/cli/cli/command_framework/lowlevel/lowlevel_kurtosis_command.go:301 (LowlevelKurtosisCommand.MustGetCobraCommand.func2) --- Caused by: An error occurred checking Docker version. Please ensure Docker engine is running and try again. --- at ...kurtosis/kurtosis/cli/cli/commands/lint/lint.go:102 (run) --- Caused by: exit status 1 ``` ## Is this change user facing? YES <!-- If yes, please add the "user facing" label to the PR --> <!-- If yes, don't forget to include docs changes where relevant --> ## References (if applicable): #1375 --------- Co-authored-by: Omar <omar@omar>
- Loading branch information