Skip to content

Commit 1f83344

Browse files
fix: tweak
1 parent bc3f04d commit 1f83344

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/commands/submit.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,14 @@ const submitTask = async () => {
293293
});
294294
} else {
295295
exec(`node ${submittedFile}`, (err, result) => {
296-
if (err) throw err;
296+
if (err) {
297+
console.log(
298+
chalk.red.bold(
299+
' Oops there is something wrong with the syntax part!',
300+
),
301+
);
302+
process.exit(1);
303+
}
297304
exec(`node ${solutionFile}`, (err, solution) => {
298305
if (err) throw err;
299306
validateSolution(submittedFile);

0 commit comments

Comments
 (0)