better error messages if pft table is not correct
(cherry picked from commit 435e1b9)