On error the server returns:
{'#error' => FALSE, '#data' => {'#error' => TRUE, '#data' => 'error message'}}

The attached patch fixes the issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sanduhrs’s picture

Ahh, respecting coding standards.

sanduhrs’s picture

Status: Active » Needs review

Setting status.

skyredwang’s picture

Status: Needs review » Needs work

Could you repatch it? Your patch has problems with path.
Go to json_server folder (From within the development copy:), then cvs diff -up > ~/json_server-[issue-number].patch

sanduhrs’s picture

FileSize
1.45 KB

Here you go.

sanduhrs’s picture

Status: Needs work » Needs review

status update

thebuckst0p’s picture

FileSize
535 bytes

That patch seems to have a bunch of unnecessary whitespace changes and failed for me, this is simpler and works.

Why is this module so buggy...?