From 9dbf27a97be938fd931724882795e3015c0da866 Mon Sep 17 00:00:00 2001 From: elinw Date: Fri, 2 Sep 2016 13:05:33 -0400 Subject: [PATCH] Information when a unit type does not exist Currently when running lesson_to_html() a unit type (class) that does not exist results in the processing stopping completely and a somewhat hard to understand message (especially for people who haven't looked at the Swirlify source). This change will simply put the message into the generated html while allowing processing to continue. --- R/lesson_to_html.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/lesson_to_html.R b/R/lesson_to_html.R index 1c02a0c..0ffbccc 100644 --- a/R/lesson_to_html.R +++ b/R/lesson_to_html.R @@ -19,7 +19,7 @@ makemult <- function(item) { makemd <- function(unit) UseMethod("makemd") makemd.default <- function(unit) { - stop("No unit class specified!", unit) + paste0("This type of question cannot currently be converted to html: ", unit) } makemd.text <- function(unit) {