Improve error message

This commit is contained in:
Sander Declerck 2026-02-05 11:01:56 +01:00
parent 0dfa151b02
commit f1e5e7bab2
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View file

@ -45,9 +45,7 @@ async function setup() {
await validatePowerShellExecutionPolicy(executableName);
if (!isValid) {
throw new Error(
`PowerShell execution policy is set to '${policy}', which prevents safe-chain from running. ` +
`To fix this, open PowerShell as Administrator and run: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned. ` +
`For more information, see: https://github.com/AikidoSec/safe-chain/blob/main/docs/troubleshooting.md#powershell-execution-policy-blocks-scripts-windows`,
`PowerShell execution policy is set to '${policy}', which prevents safe-chain from running.\n\nTo fix this, open PowerShell as Administrator and run: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned. `,
);
}