Skip to content
Browse files

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

…rrors.
  • Loading branch information...
1 parent d0cc9ac commit b08cee5a36eeef886577317ae0be4a39c621b391 Kelly McLaughlin committed
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) {

0 comments on commit b08cee5

Please sign in to comment.
Something went wrong with that request. Please try again.