|
|
@ -195,6 +195,10 @@ Meta.createLineHandler = function (ref, errorHandler) {
|
|
|
|
|
|
|
|
|
|
|
|
return function (err, line) {
|
|
|
|
return function (err, line) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
|
|
|
|
// it's not abnormal that metadata exists without a corresponding log
|
|
|
|
|
|
|
|
// so ENOENT is fine
|
|
|
|
|
|
|
|
if (ref.index === 0 && err.code === 'ENOENT') { return; }
|
|
|
|
|
|
|
|
// any other errors are abnormal
|
|
|
|
return void errorHandler('METADATA_HANDLER_LINE_ERR', {
|
|
|
|
return void errorHandler('METADATA_HANDLER_LINE_ERR', {
|
|
|
|
error: err,
|
|
|
|
error: err,
|
|
|
|
index: ref.index,
|
|
|
|
index: ref.index,
|
|
|
|