linkedin / linkedin/icon-magic

catch all thrown errors

Open
#47 0 comments 0 reactions 1 assignee Claimed by @ramitha View on GitHub
priority
Dominant language
TypeScript
Stars
18
Forks
1
PR merge metrics
No merged PRs in 30d

Description

talent-insights
├── 40.svg
├── 60.svg
├── iconrc.json

```
{
"iconPath": ".",
"variants": [
{
"name": "small",
"path": "./40.svg"
},
{
"name": "medium",
"path": "./60.svg"
}
],
"sizes": [40, 60],
"category": "app",
"resolutions": [1, 1.5, 2, 3, 4],
"outputPath": "./out/app",
"generate": {
"types": [
{
"name": "svg",
"plugins": []
},
{
"name": "raster",
"plugins": [
{
"name": "svg-to-raster",
"iterants": ["resolutions"],
"params": {
"useNameSizeMapping": {
"small": 40,
"large": 60
}
}
}
]
}
]
},
"distribute": {
"svg": {
"toSprite": true,
"spriteName": "icons"
}
}
}
```

thrown error in`svg-to-raster` is not caught:

```
UnhandledPromiseRejectionWarning: Error: large does not match a size in [object Object]
at Icon.fn (/Users/oarenyek/Sites/icon-magic/packages/@icon-magic/generate/dist/src/plugins/svg-to-raster.js:57:27)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.