Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenadros committed Oct 25, 2024
1 parent 1794115 commit 15dfc1b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugin-src/getUserData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export const getUserData = async () => {
}
});
} else {
console.error('Could not get user data');
console.warn('Could not get user data');
}
};
2 changes: 1 addition & 1 deletion plugin-src/registerComponentProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export const registerComponentProperties = (node: ComponentSetNode | ComponentNo
}
});
} catch (error) {
console.error('Error registering component properties', node, error);
console.warn('Could not register component properties', node, error);
}
};
2 changes: 1 addition & 1 deletion plugin-src/transformers/partials/transformVectorPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const transformVectorPaths = (node: VectorNode): PathShape[] => {
try {
regions = node.vectorNetwork?.regions ?? [];
} catch (error) {
console.error('Error accessing vector network', node, error);
console.warn('Could not access the vector network', node, error);
}

const strokeLength = node.strokes.length;
Expand Down
2 changes: 1 addition & 1 deletion plugin-src/transformers/transformSceneNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const transformSceneNode = async (node: SceneNode): Promise<PenpotNode |
}

if (penpotNode === undefined) {
console.error(`Unsupported node type: ${node.type}`);
console.warn(`Unsupported node type: ${node.type}`);
}

return penpotNode;
Expand Down
4 changes: 2 additions & 2 deletions plugin-src/translators/fills/translateFills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const translateFill = (fill: Paint): Fill | undefined => {
return translateImageFill(fill);
}

console.error(`Unsupported fill type: ${fill.type}`);
console.warn(`Unsupported fill type: ${fill.type}`);
};

export const translateFills = (
Expand Down Expand Up @@ -60,5 +60,5 @@ export const translatePageFill = (fill: Paint): string | undefined => {
return rgbToHex(fill.color);
}

console.error(`Unsupported page fill type: ${fill.type}`);
console.warn(`Unsupported page fill type: ${fill.type}`);
};
2 changes: 1 addition & 1 deletion ui-src/context/useFigma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const useFigma = (): UseFigmaHook => {
setLoading(false);
setExporting(false);
track('Error', { 'Error Message': pluginMessage.data });
break;
throw new Error(pluginMessage.data);
}
}
};
Expand Down

0 comments on commit 15dfc1b

Please sign in to comment.