Skip to content

Commit

Permalink
fix: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Oct 23, 2019
1 parent bc3f04d commit 1f83344
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/commands/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,14 @@ const submitTask = async () => {
});
} else {
exec(`node ${submittedFile}`, (err, result) => {
if (err) throw err;
if (err) {
console.log(
chalk.red.bold(
' Oops there is something wrong with the syntax part!',
),
);
process.exit(1);
}
exec(`node ${solutionFile}`, (err, solution) => {
if (err) throw err;
validateSolution(submittedFile);
Expand Down

0 comments on commit 1f83344

Please sign in to comment.