Skip to content

Commit

Permalink
Merge branch 'feature/991-improve-errs' of https://github.com/stan-de…
Browse files Browse the repository at this point in the history
…v/cmdstan into feature/991-improve-errs
  • Loading branch information
mitzimorris committed Mar 15, 2021
2 parents 32977f1 + 7491669 commit 503211b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/cmdstan/command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ stan::math::profile_map &get_stan_profile_data();
namespace cmdstan {

struct return_codes {
enum {
OK = 0,
NOT_OK = 1
};
enum { OK = 0, NOT_OK = 1 };
};

#ifdef STAN_MPI
Expand Down
1 change: 0 additions & 1 deletion src/cmdstan/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <cmdstan/command.hpp>
#include <stan/services/error_codes.hpp>


int main(int argc, const char *argv[]) {
try {
int err_code = cmdstan::command(argc, argv);
Expand Down
3 changes: 1 addition & 2 deletions src/test/interface/metric_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ TEST(StanUiCommand, metric_file_test) {

run_command_output out = run_command(command);
if (adapt == "1" && num_warmup == "0") {
EXPECT_EQ(int(cmdstan::return_codes::NOT_OK),
out.err_code);
EXPECT_EQ(int(cmdstan::return_codes::NOT_OK), out.err_code);
} else {
EXPECT_EQ(int(cmdstan::return_codes::OK), out.err_code);

Expand Down

0 comments on commit 503211b

Please sign in to comment.