diff options
| author | jyn <github@jyn.dev> | 2023-06-24 13:09:48 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-06-24 14:44:53 -0500 |
| commit | fa7e965bf0af41ddd5865ee63782d3536263f964 (patch) | |
| tree | 2aa56be4334601e20a767982ea1fe5b56fcf93dd /compiler/rustc_codegen_gcc/example/example.rs | |
| parent | dd314f6533c94125d08220b1ba188c6cf68226c7 (diff) | |
| download | rust-fa7e965bf0af41ddd5865ee63782d3536263f964.tar.gz rust-fa7e965bf0af41ddd5865ee63782d3536263f964.zip | |
Give a better error on Windows if python isn't installed
Before:
```
PS C:\Users\vboxuser\rust> ./x
x.ps1
PS C:\Users\vboxuser\rust>
```
After:
```
PS C:\Users\vboxuser\rust> ./x
x.ps1
C:\Users\vboxuser\rust\x.ps1 : C:\Users\vboxuser\rust\x.ps1: error: did not find python installed
help: consider installing it from https://www.python.org/downloads/windows/
At line:1 char:1
+ ./x
+ ~~~
+ CategoryInfo : NotInstalled: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,x.ps1
```
The existing message from the shell script is already decent and I decided not to change it:
```
$ ./x
Python was not found but can be installed from the Microsoft Store: ms-windows-store://pdp/?productid=9NJ46SX7X90P
```
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/example.rs')
0 files changed, 0 insertions, 0 deletions
