about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-11-28 16:09:55 +0100
committerGitHub <noreply@github.com>2023-11-28 16:09:55 +0100
commit8f4ccc14c9405fcb902dbfde0a832ae6b2223b4c (patch)
tree0d7f2692dd199aa423a2996cd82e3d0533699659 /tests/rustdoc-js-std/parser-errors.js
parent97ef5a3b532a471da95e32640cee0a5aa9bb04bb (diff)
parent101704257533adb2e700cb6f12b12e2e0de8b9af (diff)
downloadrust-8f4ccc14c9405fcb902dbfde0a832ae6b2223b4c.tar.gz
rust-8f4ccc14c9405fcb902dbfde0a832ae6b2223b4c.zip
Rollup merge of #118323 - onur-ozkan:better-error-for-incorrect-profiles, r=clubby789
give dev-friendly error message for incorrect config profiles

before this change, an incorrect profile would result in the following error:

```sh
...
...
  File "/home/nimda/devspace/onur-ozkan/rust/src/bootstrap/bootstrap.py", line 1088, in bootstrap
    with open(include_path) as included_toml:
         ^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/nimda/devspace/onur-ozkan/rust/src/bootstrap/defaults/config.aaaa.toml'
```

with this change, the error message is now:

```sh
...
...
  File "/home/nimda/devspace/onur-ozkan/rust/src/bootstrap/bootstrap.py", line 1088, in bootstrap
    raise Exception("Unrecognized profile '{}'. Check src/bootstrap/defaults"
Exception: Unrecognized profile 'aaaa'. Check src/bootstrap/defaults for available options.
```
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions