Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update the search string used by the js driver for object not found e…

…rrors.
  • Loading branch information...
commit b08cee5a36eeef886577317ae0be4a39c621b391 1 parent d0cc9ac
Kelly McLaughlin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  c_src/spidermonkey_drv.c
View
2  c_src/spidermonkey_drv.c
@@ -115,7 +115,7 @@ void run_js(void *jsargs) {
char *filename = read_string(&data);
char *code = read_string(&data);
result = sm_eval(dd->vm, filename, code, 1);
- if (strstr(result, "\"data\":{\"error\":\"notfound\"") != NULL) {
+ if (strstr(result, "\"data\":\"{\\\"error\\\":\\\"notfound\\\"") != NULL) {
send_error_string_response(dd, call_id, "{\"error\":\"map_reduce_error\"}");
}
else if (strstr(result, "{\"error\"") != NULL) {
Please sign in to comment.
Something went wrong with that request. Please try again.