Skip to content

Commit

Permalink
terminate build on compileAttributes() error
Browse files Browse the repository at this point in the history
Closes #1601.
  • Loading branch information
kevinushey committed Oct 13, 2017
1 parent bc0cd9b commit ff4ec56
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/cpp/session/modules/build/SessionBuild.cpp
Expand Up @@ -536,7 +536,15 @@ class Build : boost::noncopyable,
enqueBuildOutput(module_context::kCompileOutputError,
result.stdErr);
enqueBuildOutput(module_context::kCompileOutputNormal, "\n");
return result.exitStatus == EXIT_SUCCESS;
if (result.exitStatus == EXIT_SUCCESS)
{
return true;
}
else
{
terminateWithErrorStatus(result.exitStatus);
return false;
}
}
else
{
Expand Down

0 comments on commit ff4ec56

Please sign in to comment.