From 915695d82329231e56b4613835c4469f1f807eb5 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 2 Oct 2011 20:07:08 +0200 Subject: [PATCH] CouchDB chokes on fields with underscore --- angular-server.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-server.pl b/angular-server.pl index 71e5f69..44be86e 100755 --- a/angular-server.pl +++ b/angular-server.pl @@ -136,7 +136,7 @@ any [ 'post' ] => '/data/:database/:entity' => sub { $json->{'_'.$_} = $new->{$_} foreach ( 'rev','id' ); } else { warn "ERROR: ",dump($new); - $json->{_error} = $new; + $json->{error} = $new; } _render_jsonp( $self, $json ); -- 2.20.1