const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

const targetStr = 'Cloud sync failed';
const idx = content.indexOf(targetStr);
if (idx !== -1) {
  console.log("Found cloud sync failed around:");
  console.log(content.substring(idx - 1000, idx + 1000));
}
