MF-1055 - rollback/release transaction on error (#1166)
MF-1055 - rollback/release transaction on error (#1166)

* fix error message

Signed-off-by: Mirko Teodorovic <7b8a087167ce46f5caf345e732fa89e18a8f7712@gmail.com>

* release transaction on error

Signed-off-by: Mirko Teodorovic <7b8a087167ce46f5caf345e732fa89e18a8f7712@gmail.com>

* reove println

Signed-off-by: Mirko Teodorovic <7b8a087167ce46f5caf345e732fa89e18a8f7712@gmail.com>

* move defer func up

Signed-off-by: Mirko Teodorovic <7b8a087167ce46f5caf345e732fa89e18a8f7712@gmail.com>

* refactor errors handling

Signed-off-by: Mirko Teodorovic <7b8a087167ce46f5caf345e732fa89e18a8f7712@gmail.com>

* refactor errors handling

Signed-off-by: Mirko Teodorovic <7b8a087167ce46f5caf345e732fa89e18a8f7712@gmail.com>

* move defer

Signed-off-by: Mirko Teodorovic <7b8a087167ce46f5caf345e732fa89e18a8f7712@gmail.com>
drasko/mainflux,drasko/mainflux,drasko/mainflux