#6 Unhelpful error messages if you ask for an ubuntu package that doesn't exist

Opened by Madx on February 5, 2026
Madx on February 5, 2026

Hello,

If you do ubuntu "xxx" with xxx that is not in your repo, you get

Uncaught exception:
  
  (Invalid_argument "option is None")

Raised at Lwt.Miscellaneous.poll in file "src/core/lwt.ml", line 3141, characters 20-29
Called from Lwt_main.run.run_loop in file "src/unix/lwt_main.ml", line 28, characters 10-20
Called from Stdlib__Fun.protect in file "fun.ml", line 34, characters 8-15
Re-raised at Stdlib__Fun.protect in file "fun.ml", line 39, characters 6-52
Called from Lwt_main.run in file "src/unix/lwt_main.ml", line 112, characters 8-13
Re-raised at Lwt_main.run in file "src/unix/lwt_main.ml", line 118, characters 4-13
Called from Command.For_unix.run.(fun) in file "command/src/command.ml", lines 3388-3399, characters 8-31
Called from Base__Exn.handle_uncaught_aux in file "src/exn.ml", line 126, characters 6-10

which is a nix-level of unhelpful ;)

I’ll find a fix later. Madx