Skip to content

Commit

Permalink
Handle error in one more case, fix #51
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkprime committed May 7, 2015
1 parent 2b83ce5 commit c38c23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libjsonnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static char *jsonnet_evaluate_file_aux(JsonnetVm *vm, const char *filename, int
std::stringstream ss;
ss << "Opening input file: " << filename << ": " << strerror(errno);
*error = true;
return ::strdup(ss.str().c_str());
return from_string(vm, ss.str());
}
std::string input;
input.assign(std::istreambuf_iterator<char>(f),
Expand Down

0 comments on commit c38c23b

Please sign in to comment.