about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authoronur-ozkan <work@onurozkan.dev>2023-11-26 18:37:59 +0300
committeronur-ozkan <work@onurozkan.dev>2023-11-26 19:05:02 +0300
commit101704257533adb2e700cb6f12b12e2e0de8b9af (patch)
treef558bd25894934b47dd0cad98c645ee5c3e126a4 /tests/rustdoc-js-std/parser-errors.js
parent42ae1a76154289ccc972deeb43318b164f01539e (diff)
downloadrust-101704257533adb2e700cb6f12b12e2e0de8b9af.tar.gz
rust-101704257533adb2e700cb6f12b12e2e0de8b9af.zip
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.
```

Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions