fix(script): store the type name rather than throwing an exception when casting an unhandled type to string

This commit is contained in:
smallmodel committed 2026-02-04 23:51:23 +01:00
1 parent 8a8d0d3a63
commit 5e3944d530
1 file changed
+1 -2
+1 -2
View File
@@ -1198,8 +1198,7 @@ str ScriptVariable::stringValue() const
+ str(m_data.vectorValue[2]) + str(" )");
default:
throw ScriptException("Cannot cast '%s' to string", GetTypeName());
break;
return "Type: '" + str(GetTypeName()) + "'";
}
return "";