What was the code? Like code 95? Often times a primary or secondary FP code is a ghost code - the system burped and the pump lost power at some point (if even for a split second).
More about the code and exact issue can help. See Jrichker's surging idle sticky for a ton of great info.
Good luck.