Improve error reporting at startup