improve error message when filepath and renameGroup not available.