final RetainingLogHandler log = SkriptLogger.startRetainingLog();
final Expression<?> v;
try {
v = exprs[0].getConvertedExpression(rt.getC());
if (v == null) {
log.printErrors("This function is declared to return " + rt.getName().withIndefiniteArticle() + ", but " + exprs[0].toString(null, false) + " is not of that type.");
return false;
}
log.printLog();
} finally {
log.stop();