a-b-street / a-b-street/abstreet

When some file is missing the error message doesn't mention the file name

未關閉
#801 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
8.2k
分支
380
PR 合併指標
30 天內沒有已合併 PR

描述

Resources were missing and this was the message:
```
$ abstreet-game
[2021-11-08T17:19:04Z WARN map_gui::options] Couldn't restore settings, so using defaults. No such file or directory (os error 2)
setup widgetry...
[2021-11-08T17:19:04Z INFO winit::platform_impl::platform::x11::window] Guessed window scale factor: 1
load textures...
[2021-11-08T17:19:04Z INFO widgetry::backend_glow] img_size: 896x896px (802816 px), sprite_size: 64x64px, sprites: 14x14 (196 sprites)
load textures took 0.0628s
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })', /disk-samsung/freebsd-ports/games/abstreet/work/abstreet-0.2.64/widgetry/src/runner.rs:316:43
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
setup widgetry... plus 0.1795s
setup widgetry took 0.2423s
[2021-11-08T17:19:04Z INFO abstutil::time] - setup widgetry took 0.2423s
[2021-11-08T17:19:04Z INFO abstutil::time] - load textures took 0.0628s
[2021-11-08T17:19:04Z INFO abstutil::time] - ... plus 0.1795s
[2021-11-08T17:19:04Z ERROR abstutil::time]
[2021-11-08T17:19:04Z ERROR abstutil::time]
[2021-11-08T17:19:04Z ERROR abstutil::time]
[2021-11-08T17:19:04Z ERROR abstutil::time]
[2021-11-08T17:19:04Z ERROR abstutil::time]
[2021-11-08T17:19:04Z ERROR abstutil::time] !!! The program panicked, look above for the stack trace !!!
```

In fact. ```icon.png``` was missing.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。