fix wrong return error
Merge pull request #1846 from dotcloud/fix_return_error

Fix wrong return error