Error Treatment Fix

Expected Error format fixed.
Merge pull request #2 from eventick/error-treatment

Error Treatment Fix