Skip to content

Commit

Permalink
Merge pull request influxdata#13636 from influxdata/delete_invalid_or…
Browse files Browse the repository at this point in the history
…g_id

fix(http): fix delete bad org id
  • Loading branch information
imogenkinsman authored Apr 29, 2019
2 parents 4373392 + 9fa3596 commit 7855147
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion http/org_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,11 @@ func decodeDeleteOrganizationRequest(ctx context.Context, r *http.Request) (*del

var i influxdb.ID
if err := i.DecodeFromString(id); err != nil {
return nil, err
return nil, &influxdb.Error{
Code: influxdb.EInvalid,
Msg: "bad org id",
Err: err,
}
}
req := &deleteOrganizationRequest{
OrganizationID: i,
Expand Down

0 comments on commit 7855147

Please sign in to comment.