MCPcopy
hub / github.com/zxlie/FeHelper / captureFailureHandler

Function captureFailureHandler

apps/screenshot/content-script.js:1209–1217  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

1207
1208 // 在截图失败的回调中,确保错误信息被正确记录,并释放资源
1209 function captureFailureHandler(reason) {
1210 // console.error('截图失败:', reason);
1211 updateProgressUI(1, '截图失败');
1212 setTimeout(() => {
1213 const errorMsg = reason && reason.message || reason || '截图失败,请刷新页面重试!';
1214 alert(errorMsg);
1215 cleanup();
1216 }, 500);
1217 }
1218};

Callers 1

captureFullPageFunction · 0.85

Calls 3

updateProgressUIFunction · 0.85
setTimeoutFunction · 0.85
cleanupFunction · 0.70

Tested by

no test coverage detected