Print error messages to stderr in Cyad 88/34388/6
authorAleksander Zdyb <a.zdyb@samsung.com>
Mon, 2 Feb 2015 13:11:47 +0000 (14:11 +0100)
committerAleksander Zdyb <a.zdyb@samsung.com>
Mon, 23 Feb 2015 13:11:50 +0000 (14:11 +0100)
commitba91952220726c7e51f98e3c1e95b6c9dc040f0c
tree8584323edf01e7f169c8a05352e054639f600d5b
parent56ffb7914c4f8410a8bc71a7f9d8a06c5117510d
Print error messages to stderr in Cyad

Every dispatched command checks return value from Cynara API
and prints possible error message using cynara_strerror() function.

Call to cynara_strerror() is not of course subject to above
check & print routine.

Change-Id: I008d1fbd592061646478b47be8ae53bbc408cb1b
src/cyad/BaseErrorApiWrapper.h [new file with mode: 0644]
src/cyad/CMakeLists.txt
src/cyad/CommandsDispatcher.cpp
src/cyad/CommandsDispatcher.h
src/cyad/Cyad.cpp
src/cyad/Cyad.h
src/cyad/ErrorApiWrapper.cpp [new file with mode: 0644]
src/cyad/ErrorApiWrapper.h [new file with mode: 0644]
test/cyad/FakeErrorApiWrapper.h [new file with mode: 0644]
test/cyad/commands_dispatcher.cpp