Fix issues #41 and #42
Merge pull request #43 from treilly-nuodb/master

Fix issues #41 and #42
Really fix issue #41 by properly consuming error codes
Merge pull request #44 from treilly-nuodb/master

Really fix issue #41 by properly consuming error codes