Fix error handling in artifacts{,/*} pkg 41/185941/17
authorAlexander Mazuruk <a.mazuruk@samsung.com>
Fri, 3 Aug 2018 16:27:45 +0000 (18:27 +0200)
committerAlexander Mazuruk <a.mazuruk@samsung.com>
Thu, 6 Sep 2018 15:07:41 +0000 (17:07 +0200)
commitd98a114e9c54de75ba33aecbe76b031c096a4551
treef0601eb34eea16f1b30c0b602864e927f002aa05
parentfb94b0aed2881b501351529e57117213b3c6f936
Fix error handling in artifacts{,/*} pkg

- Handled a few unhandled errors (reported by gas and errcheck).

Verification:
$ gometalinter.v2 --disable-all --vendor --enable=gas --enable=errcheck  ./artifacts/...

Should return no errors.

Some errors should just be logged and are logged via standard log
library.

Additionally call to getID function and the function itself were
removed. They were not neccessary after moving ID field to ArtifactInfo
struct.

Change-Id: If0d249aa08e296c7b46bc06532fe51d835e1b5c6
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
artifacts/artifacts.go
artifacts/database/database.go
artifacts/database/errors.go
artifacts/downloader/downloader.go