Skip to content

Commit

Permalink
Tidy up error message
Browse files Browse the repository at this point in the history
  • Loading branch information
LHMarshall committed Jun 11, 2023
1 parent 4e53f67 commit e130c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ds.R
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ ds <- function(data, truncation=ifelse(is.null(cutpoints),
} # end for() over adjustments

if(is.null(model)){
stop("No models could be fitted.")
stop("No models could be fitted.", call. = FALSE)
}

# check that hazard models have a reasonable scale parameter
Expand Down

0 comments on commit e130c69

Please sign in to comment.