conig / revise

R package for writing revise and resubmits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

better error handling for get_revision

pdparker opened this issue · comments

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?

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?

great minds