Skip to content

Commit 11db1f5

Browse files
authored
Merge pull request #102 from yi2020/minor_error_message_fix
Updated an error message to make it easier to figure out how to fix the issue
2 parents bdce6e5 + 5410109 commit 11db1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restapi/api_object.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (obj *api_object) create_object() error {
226226
with the id of whatever gets created, we have no way to know what
227227
the object's id will be. Abandon this attempt */
228228
if obj.id == "" && !obj.api_client.write_returns_object && !obj.api_client.create_returns_object {
229-
return errors.New("ERROR: Provided object does not have an id set and the client is not configured to read the object from a POST or PUT response. Without an id, the object cannot be managed.")
229+
return errors.New("ERROR: Provided object does not have an id set and the client is not configured to read the object from a POST or PUT response. Please set write_returns_object to true, or include an id in the object's data.")
230230
}
231231

232232
b, _ := json.Marshal(obj.data)

0 commit comments

Comments
 (0)