Skip to content

runSql() exception incorrectly handles error message for CartoDB errors #6

@kentr

Description

@kentr

The exception thrown by CartoDBClient::runSql() doesn't return a valid message string, at least when the error is a SQL error.

In that case, the CartoDB response is an array, which runSql() tries to concatenate onto the Exception message.

Suggest testing for HTTP response 400 and adjusting the error message accordingly.

Will follow with patch, rolled against HEAD, relative to cartodbclient-php directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions