Added error code.
Merge pull request #112 from g-ortuno/patch-1

Added error code.