Skip to content

catch and report the database error #5

@aammd

Description

@aammd

Here is an example of a good error from the database:

Response [http://www.zoology.ubc.ca/~lui/v1/api/?route=matrix&action=list&dataset_id=96]
  Date: 2017-01-10 10:14
  Status: 412
  Content-Type: application/json; charset=utf-8
  Size: 48 B
{
	"success": false,
	"error": "NO_BROMELIADS"

however all we get from bwg_get() is

 Error in bwg_get("matrix", .) : Precondition Failed (HTTP 412). 

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