aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/util.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-07-26 04:08:31 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-07-26 04:08:31 +0800
commitab01358a480243c9073ac06dc4f510a6089567d0 (patch)
tree6a8fae865acec061443c8a9693d4bddb5b9876d8 /app/scripts/lib/util.js
parent9b24ab0e70d72471ddc928a763bc2096790ab966 (diff)
downloadtangerine-wallet-browser-ab01358a480243c9073ac06dc4f510a6089567d0.tar
tangerine-wallet-browser-ab01358a480243c9073ac06dc4f510a6089567d0.tar.gz
tangerine-wallet-browser-ab01358a480243c9073ac06dc4f510a6089567d0.tar.bz2
tangerine-wallet-browser-ab01358a480243c9073ac06dc4f510a6089567d0.tar.lz
tangerine-wallet-browser-ab01358a480243c9073ac06dc4f510a6089567d0.tar.xz
tangerine-wallet-browser-ab01358a480243c9073ac06dc4f510a6089567d0.tar.zst
tangerine-wallet-browser-ab01358a480243c9073ac06dc4f510a6089567d0.zip
Add stack traces both in errors and as a way to track txMetas
Diffstat (limited to 'app/scripts/lib/util.js')
-rw-r--r--app/scripts/lib/util.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/scripts/lib/util.js b/app/scripts/lib/util.js
new file mode 100644
index 000000000..bddd60ee8
--- /dev/null
+++ b/app/scripts/lib/util.js
@@ -0,0 +1,8 @@
+module.exports = {
+ getStack,
+}
+
+function getStack () {
+ const stack = new Error('Stack trace generator - not an error').stack
+ return stack
+}