Error checking for *mdpretty