@cloud411716/fancy-webnovel 0.1.23 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "type": "module",
5
5
  "main": "plugins/fancy-bootstrap/index.js",
6
6
  "exports": {
@@ -293,6 +293,12 @@ async function applyScan(ctx) {
293
293
  export const inject = ['commands', 'userQuestions'];
294
294
 
295
295
  export async function apply(ctx) {
296
- await applyBootstrap(ctx);
297
- await applyScan(ctx);
296
+ try {
297
+ await applyBootstrap(ctx);
298
+ await applyScan(ctx);
299
+ } catch (e) {
300
+ const { writeFileSync } = await import('fs');
301
+ writeFileSync('/tmp/dsh-apply-error.txt', String(e) + '\n' + e.stack, 'utf-8');
302
+ throw e;
303
+ }
298
304
  }