Skip to content

Commit e471fb2

Browse files
committed
fixup! Don't crash on large pulls
Use an Error instead of returning a string directly
1 parent 900ad3c commit e471fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ var gitPullCourseOrigin = function(callback) {
706706
});
707707

708708
ps.stdout.on('close', function(code) {
709-
if (code) return callback("git exited with non-zero exit code " + code);
709+
if (code) return callback(new Error("git exited with non-zero exit code " + code));
710710
callback(null, Buffer.concat(bufList).toString('utf8').trim());
711711
});
712712
};

0 commit comments

Comments
 (0)