Skip to content

Commit

Permalink
wrap upload in try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Nov 20, 2023
1 parent e9a32a7 commit 956e8db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,11 @@ async function buildHtmlPages(forceBuild) {
}

if (configChanged || widgetsChanged || filesChanged || uploadedIndexHtml !== indexHtml || forceBuild) {
await uploadAdapter();
try {
await uploadAdapter();
} catch (e) {
this.log.error(`Could not upload adapter: ${e.message}`)
}

// terminate promise
if (stoppingPromise) {
Expand Down

0 comments on commit 956e8db

Please sign in to comment.