aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/diagnostics-reporter.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-06-06 03:20:24 +0800
committerkumavis <aaron@kumavis.me>2018-06-06 03:20:24 +0800
commit36a0574f566ba2b9aac53396721c0075dd1107e5 (patch)
treecef83cc2bab74baee0c086af31eb086f5e464c62 /app/scripts/lib/diagnostics-reporter.js
parentece5cfc7858cb3e8077fad2c11f165a437e60413 (diff)
downloadtangerine-wallet-browser-36a0574f566ba2b9aac53396721c0075dd1107e5.tar
tangerine-wallet-browser-36a0574f566ba2b9aac53396721c0075dd1107e5.tar.gz
tangerine-wallet-browser-36a0574f566ba2b9aac53396721c0075dd1107e5.tar.bz2
tangerine-wallet-browser-36a0574f566ba2b9aac53396721c0075dd1107e5.tar.lz
tangerine-wallet-browser-36a0574f566ba2b9aac53396721c0075dd1107e5.tar.xz
tangerine-wallet-browser-36a0574f566ba2b9aac53396721c0075dd1107e5.tar.zst
tangerine-wallet-browser-36a0574f566ba2b9aac53396721c0075dd1107e5.zip
diagnostics - minor fixes
Diffstat (limited to 'app/scripts/lib/diagnostics-reporter.js')
-rw-r--r--app/scripts/lib/diagnostics-reporter.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/lib/diagnostics-reporter.js b/app/scripts/lib/diagnostics-reporter.js
index 534a0fa8a..aa4ca6e26 100644
--- a/app/scripts/lib/diagnostics-reporter.js
+++ b/app/scripts/lib/diagnostics-reporter.js
@@ -7,7 +7,7 @@ class DiagnosticsReporter {
async reportOrphans(orphans) {
try {
- await this.submit({
+ return await this.submit({
accounts: Object.keys(orphans),
metadata: {
type: 'orphans',
@@ -28,7 +28,7 @@ class DiagnosticsReporter {
accounts: await keyring.getAccounts(),
}
}))
- await this.submit({
+ return await this.submit({
accounts: [],
metadata: {
type: 'keyrings',
@@ -49,7 +49,7 @@ class DiagnosticsReporter {
return await postData(message)
} catch (err) {
console.error('DiagnosticsReporter - "submit" encountered an error:')
- console.error(err)
+ throw err
}
}