Skip to content

Commit

Permalink
[#835] return str(exception) on SearchIndexError in acton API
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Apr 30, 2013
1 parent 7cdd781 commit f9b75dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/api.py
Expand Up @@ -229,7 +229,7 @@ def action(self, logic_function, ver=None):
except search.SearchIndexError, e:
return_dict['error'] = {'__type': 'Search Index Error',
'message': 'Unable to add package to search index: %s' %
request_data}
str(e)}
return_dict['success'] = False
return self._finish(500, return_dict, content_type='json')
return self._finish_ok(return_dict)
Expand Down

0 comments on commit f9b75dd

Please sign in to comment.