getLastError() is now fully obsolete, you can get the same message by calling getLast...