Skip to content

Commit 23d53df

Browse files
rust error update
1 parent 758f3fd commit 23d53df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/rust/rust.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func Run(files []string, stdin string) (string, string, error, string) {
2929
return cmd.RunStdin(workDir, stdin, "cargo", "test")
3030
} else {
3131
stdout, stderr, err, duration := cmd.Run(workDir, "rustc", "-o", binName, files[0])
32-
if err != nil {
32+
if err != nil || stderr != "" {
3333
return stdout, stderr, err, duration
3434
}
3535
binPath := filepath.Join(workDir, binName)

0 commit comments

Comments
 (0)