Improve error handling in fileUserRecord.go