Skip to content

Commit

Permalink
src: fix bug in GetErrorSource()
Browse files Browse the repository at this point in the history
Refs: #43875

PR-URL: #44019
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
  • Loading branch information
tniessen authored and ruyadorno committed Aug 22, 2022
1 parent 697dbfb commit b90b8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_errors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static std::string GetErrorSource(Isolate* isolate,
if (has_source_map_url && env != nullptr && env->source_maps_enabled()) {
std::string source = GetSourceMapErrorSource(
isolate, context, message, added_exception_line);
return added_exception_line ? source : sourceline;
return *added_exception_line ? source : sourceline;
}

// Because of how node modules work, all scripts are wrapped with a
Expand Down

0 comments on commit b90b8ab

Please sign in to comment.