Skip to content

better error message when BoardConfig wrong #10

@astraw

Description

@astraw

Hi, we noticed that when providing a wrong board config (or when using the default board config when it is wrong), the error behavior does not lead one to immediate realize the problem:

thread 'main' panicked at src/util.rs:349:14:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

(Digging deeper leads one quickly to a problem in optimizer, which gets intimidating quickly.)

I wonder if it would be straightforward to catch if the board configuration seems wrong and list this as a possible cause of the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions