Skip to content

Commit

Permalink
opendrive: Added error message on session failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mschneider82 committed Jun 20, 2024
1 parent cbb35db commit c717a24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/opendrive/opendrive.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func (o *Provider) getSessionID() (string, error) {
return "", fmt.Errorf("json unmarshal error: %s", err.Error())
}

if response.SessionID == "" {
return "", fmt.Errorf("session id is empty: %s", string(resultBody))
}

return response.SessionID, nil
}

Expand Down

0 comments on commit c717a24

Please sign in to comment.