Provide more debugging info if no ref found in `src api describe`

/cc @mcuadros