Skip to content

Commit

Permalink
fix(fragment): display error
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed May 5, 2020
1 parent b2c54ad commit 3486f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@nodepack/fragment/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function loadFragment<T = any> (file: string, cwd: string = process.cwd()
const moduleFile = path.join(outputDir, file)
return loadModule(moduleFile, outputDir)
} catch (e) {
// Not in a Nodepack project
console.log(`Error while loading fragment ${file}`, e)
return null
}
}

0 comments on commit 3486f65

Please sign in to comment.