Commit 8d17a41209cdd6c812ab9a2b84b33e948725194a
Don't die on dat share error
Anders Rune Jensen committed on 10/30/2017, 7:16:00 PMParent: ee570c41c6e2c24f4c77c9f3c9f14811bfb29f5f
Files changed
lib.js | changed |
lib.js | ||
---|---|---|
@@ -24,9 +24,12 @@ | ||
24 | 24 … | Dat(shareFolder + "/" + datLink.substring(6), { |
25 | 25 … | key: datLink, |
26 | 26 … | temp: useTemp |
27 | 27 … | }, function (err, dat) { |
28 | - if (err) throw err | |
28 … | + if (err) { | |
29 … | + console.log(err); | |
30 … | + return | |
31 … | + } | |
29 | 32 … | |
30 | 33 … | console.log("sharing:", datLink) |
31 | 34 … | dat.joinNetwork() |
32 | 35 … | }) |
Built with git-ssb-web