* Removed error code logic and replaced with library function * Added the gosecignore comment to prevent gosec failing