Improve error message when scripting fk fails

refs #10