Deprecate getLastError() as discussed
Fix variable typo