You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that Style Dictionary is not just a tool for exporting tokens and is also used in Design Token management tools such as Tokens Studio platform, Penpot, etc., it makes sense that such tools will want to wrap Style Dictionary runs in try-catch and do their own error handling. For example, a broken reference might be reported in a way where the tool can help the user fixing the broken reference in their design tokens set. E.g. it should report the filePath of the broken ref and the tool might turn that into an anchor so the user can click it and navigate to that tokenset within the design token management tool, to fix it.
Plenty of use cases I think that warrant throwing errors with data objects that can be more easily processed that console error string parsing.
Problem
Today the only way to handle errors like broken references is to parse
stderr
from console output.There is the
throw
option inlog.errors.brokenReferences
but it just throw on first error and do not provide any detailExpectation
I would expect an error report API to collect all errors after running a build.
This way a developer act on specific errors or create custom reports.
The text was updated successfully, but these errors were encountered: