Browse code

Merge pull request #304 from lima1/issue_302

Fix wrongly formatted error message (#302).

Markus Riester authored on 03/07/2023 17:19:15 • GitHub committed on 03/07/2023 17:19:15
Showing 1 changed files

... ...
@@ -512,8 +512,8 @@ function(vcf, tumor.id.in.vcf, allowed = 0.05) {
512 512
         db <- grepl("^rs", rownames(vcf))
513 513
 
514 514
         if (!sum(db)) {
515
-           .stopUserError("vcf.file has no %s or %s info field for membership in germline databases.",
516
-            DB.info.flag, POPAF.info.field)
515
+           .stopUserError("vcf.file has no ", DB.info.flag, " or ", POPAF.info.field,
516
+               " info field for membership in germline databases.")
517 517
         } else {
518 518
            flog.warn("vcf.file has no %s or %s info field for membership in germline databases.%s",
519 519
                DB.info.flag, POPAF.info.field, " Guessing it based on available dbSNP ID.")