Skip to content

Commit

Permalink
Merge pull request #58 from kalimah-apps/patch-1
Browse files Browse the repository at this point in the history
Show error message when file can not be loaded
  • Loading branch information
jpkleemans committed Aug 18, 2022
2 parents bd9d013 + e51a3e0 commit e528e6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -29,6 +29,7 @@ module.exports = function svgLoader (options = {}) {
try {
svg = await fs.readFile(path, 'utf-8')
} catch (ex) {
console.log("File couldn't be loaded, fallback to default loader", id, ex)
return // File couldn't be loaded, fallback to default loader
}

Expand Down

0 comments on commit e528e6f

Please sign in to comment.