We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4be0e9 commit cbbb40fCopy full SHA for cbbb40f
src/stubs.ts
@@ -172,6 +172,9 @@ export const createFigma = (config: TConfig): PluginAPI => {
172
return this._fontName || { family: "Roboto", style: "Regular" };
173
}
174
set fontName(fontName) {
175
+ if (joinedConfig.simulateErrors && !fontName) {
176
+ throw new Error(`Error: fontName is undefined`);
177
+ }
178
this._fontName = fontName;
179
180
get characters() {
0 commit comments