better error handling for get_revision
pdparker opened this issue · comments
Philip Parker commented
I think it would be good to have some more informative error messages for get_revision. I think the most critical is get_revision should check is target %in% names(manuscript$sections) or something similar?
James Conigrave commented
Amazingly I just added that this morning:
> get_revision("dependcor")
Error: Couldn't find a section in the manuscript tagged as 'dependcor'. Did you mean: dependcorr?
Philip Parker commented
great minds