Skip to content

Add user friendly Kani driver messages #1899

Closed

Description

@celinval

Use case: Messages inside Kani driver should have a proper category and follow standard format.
E.g.:

  • Validation that fails due to user invalid input should not appear to be a Kani crash.
  • No harnesses have been found by Kani.

Test case:

$ cargo new --lib pkg
$ cd pkg
$ cargo kani -p wrong_name
thread 'main' panicked at 'Cannot find package 'wrong_name'', kani-driver/src/call_cargo.rs:151:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Instead, I expected a more friendly error that doesn't look like Kani bug. E.g.:

$ cargo build -p wrong_name
error: package ID specification `wrong_name` did not match any packages

Activity

  1. added
    [C] Feature / Enhancement
    [E] User Experience
    on Nov 15, 2022
  2. feliperodri commented on Nov 5, 2026

    @feliperodri
    Member

    Closing: kani-driver/src/call_cargo.rs; fixed in 5e67b63; fixed in 9cb5005. Reopen with a minimal repro if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] Feature / Enhancement[E] User Experience

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions