catch `df` errors