Skip to content

Commit

Permalink
Merge pull request #834 from stan-dev/diagnose-method-duplicate-stdout
Browse files Browse the repository at this point in the history
change duplicate stdout_file to stderr_file
  • Loading branch information
jgabry authored Aug 24, 2023
2 parents b1a767a + a289be2 commit a13c798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/run.R
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ CmdStanRun$set("private", name = "run_variational_", value = .run_other)
if (file.exists(stdout_file)) {
cat(readLines(stdout_file), sep = "\n")
}
if (file.exists(stdout_file)) {
cat(readLines(stdout_file), sep = "\n")
if (file.exists(stderr_file)) {
cat(readLines(stderr_file), sep = "\n")
}
stop(
"Diagnose failed with the status code ", ret$status, "!\n",
Expand Down

0 comments on commit a13c798

Please sign in to comment.