Skip to content

Commit

Permalink
log oplookup error
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Nov 21, 2024
1 parent 1feabbe commit be4fc15
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion shared/api/utils/shared_doc_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,15 @@ export default class SharedDocUtil extends SharedUtil
if (fs.existsSync(this.opLookupFilename))
{
let removeOps = [];
const fileLookUp = jsonfile.readFileSync(this.opLookupFilename);
let fileLookUp = null;
try
{
fileLookUp = jsonfile.readFileSync(this.opLookupFilename);
}
catch (e)
{
this._log.error("error reading oplookup file", this.opLookupFilename, e);
}
if (fileLookUp && fileLookUp.ids && fileLookUp.names)
{
const idsAndNames = {};
Expand Down

0 comments on commit be4fc15

Please sign in to comment.