Skip to content

Commit 42a73ee

Browse files
committed
Catch stream error
1 parent 4d9ce9b commit 42a73ee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/output/adapt/outputHelpers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ function importAsset(fileMetadata, metadata, assetImported) {
137137
var hash = crypto.createHash('sha1');
138138
var rs = fs.createReadStream(fileMetadata.path);
139139

140+
rs.on('error', error => logger.log('error', error));
140141
rs.on('data', function onReadData(pData) {
141142
hash.update(pData, 'utf8');
142143
});

0 commit comments

Comments
 (0)