Yes, this is error handling solely for `refs.c`, but some of the abstractions leak all ofer the code base.