Ok sounds fair enough, could you give you last suggestion as to how the function should look like in your opinion then ? without converting error codes.