twitter / pelikan

Pelikan is Twitter's unified cache backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed file opens don't propagate expect() errors to stdout/stderr

aetimmes opened this issue · comments

If segcache tries to open a file with expect() that doesn't exist (either for the main config or for TLS certs, for example), it will emit a Rust backtrace but the actual expect() error message won't get printed to stderr/stdout.

To Reproduce
Steps to reproduce the behavior:

  1. run ./pelikan_segcache_rs fhqwhgads.toml

Expected behavior
A human-readable error message (in addition to the backtrace currently emitted)

Environment
latest MacOS, latest Rust, latest Pelikan release

I misremembered which project I encountered this issue with; segcache does indeed produce error messages.