Skip to content

Commit 024b6c8

Browse files
committedMar 31, 2015
Fixes error message when adding a document to a corpus fails
1 parent f2c8e07 commit 024b6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pypln/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def add_document(self, document):
180180
if result.status_code == 201:
181181
return Document(session=self.session, **result.json())
182182
else:
183-
raise RuntimeError("Corpus creation failed with status "
183+
raise RuntimeError("Document creation failed with status "
184184
"{}. The response was: '{}'".format(result.status_code,
185185
result.text))
186186

0 commit comments

Comments
 (0)
Please sign in to comment.