Skip to content

Commit

Permalink
convert errors to warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fbenke-pik committed Oct 17, 2023
1 parent 3ca9460 commit b1cf87d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/mipConvergence.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@
mipConvergence <- function(gdx) {

if (!file.exists(gdx)) {
stop("gdx file not found!")
warning("gdx file not found!")
return(list())
}

modelstat <- readGDX(gdx, name = "o_modelstat")[[1]]

if (!(modelstat %in% c(1, 2, 3, 4, 5, 6, 7))) {
stop("Run failed - Check code, pre-triangular infes ...")
warning("Run failed - Check code, pre-triangular infes ...")
return(list())
}

aestethics <- list(
Expand Down

0 comments on commit b1cf87d

Please sign in to comment.