From bad896898f7958e025233c74f914c6640d77724c Mon Sep 17 00:00:00 2001 From: Twan van Laarhoven Date: Thu, 23 Apr 2020 19:56:46 +0200 Subject: [PATCH] Don't throw Char* --- src/script/functions/export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/functions/export.cpp b/src/script/functions/export.cpp index 3d4e7a96..cfdccb2d 100644 --- a/src/script/functions/export.cpp +++ b/src/script/functions/export.cpp @@ -355,7 +355,7 @@ String to_bbcode(const String& str_in) { // convert a tagged string to BBCode SCRIPT_FUNCTION(to_bbcode) { SCRIPT_PARAM_C(String, input); - throw "TODO"; + throw InternalError(_("TODO: to_bbcode")); // SCRIPT_RETURN(to_bbcode(input, symbol_font)); }