Merge pull request #6 from lgorence/better_errors

Improve error handling
This commit is contained in:
zadam 2020-10-09 22:29:27 +02:00 committed by GitHub
commit 097d319fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View File

@ -111,7 +111,7 @@ async function sendMessageToActiveTab(message) {
return await browser.tabs.sendMessage(activeTab.id, message); return await browser.tabs.sendMessage(activeTab.id, message);
} }
catch (e) { catch (e) {
console.error("Sending message to active tab failed, you might need to refresh the page after updating the extension.", e); throw e;
} }
} }

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
VERSION=$(jq -r ".version" manifest.json) VERSION=$(jq -r ".version" manifest.json)
CHROME_EXTENSION_ID=dfhgmnfclbebfobmblelddiejjcijbjm CHROME_EXTENSION_ID=dfhgmnfclbebfobmblelddiejjcijbjm

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
WEB_EXT_ID="{1410742d-b377-40e7-a9db-63dc9c6ec99c}" WEB_EXT_ID="{1410742d-b377-40e7-a9db-63dc9c6ec99c}"

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
export GITHUB_REPO=trilium-web-clipper export GITHUB_REPO=trilium-web-clipper