Skip to content

Commit

Permalink
src: missing Exception::Error in node_http_parser
Browse files Browse the repository at this point in the history
Fixes: 75adde0
PR-URL: #2550
Reviewed-By: Fedor Indutny <fedor@indutny.com>
  • Loading branch information
Fishrock123 authored and rvagg committed Aug 27, 2015
1 parent 34de901 commit 13fd96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_http_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class Parser : public BaseObject {
if (rv != 0) {
enum http_errno err = HTTP_PARSER_ERRNO(&parser->parser_);

Local<Value> e = env->parse_error_string();
Local<Value> e = Exception::Error(env->parse_error_string());
Local<Object> obj = e->ToObject(env->isolate());
obj->Set(env->bytes_parsed_string(), Integer::New(env->isolate(), 0));
obj->Set(env->code_string(),
Expand Down

0 comments on commit 13fd96d

Please sign in to comment.