Skip to content

Commit

Permalink
change duplicate stdout_file to stderr_file
Browse files Browse the repository at this point in the history
closes #826
  • Loading branch information
jgabry committed Aug 23, 2023
1 parent a9c898b commit a289be2
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 a289be2

Please sign in to comment.