diff --git a/js/libtextsecure.js b/js/libtextsecure.js
index 93628f134..6f127c5d8 100644
--- a/js/libtextsecure.js
+++ b/js/libtextsecure.js
@@ -37097,11 +37097,15 @@ Internal.SessionLock.queueJobForNumber = function queueJobForNumber(number, runJ
function loadProtoBufs(filename) {
return dcodeIO.ProtoBuf.loadProtoFile({root: window.PROTO_ROOT, file: filename}, function(error, result) {
if (error) {
+ var text = 'Error loading protos from ' + filename + ' (root: ' + window.PROTO_ROOT + ') '
+ + (error && error.stack ? error.stack : error);
+ console.log(text);
throw error;
}
var protos = result.build('textsecure');
if (!protos) {
var text = 'Error loading protos from ' + filename + ' (root: ' + window.PROTO_ROOT + ')';
+ console.log(text);
throw new Error(text);
}
for (var protoName in protos) {
diff --git a/libtextsecure/protobufs.js b/libtextsecure/protobufs.js
index d7f061436..9f578ec29 100644
--- a/libtextsecure/protobufs.js
+++ b/libtextsecure/protobufs.js
@@ -6,11 +6,15 @@
function loadProtoBufs(filename) {
return dcodeIO.ProtoBuf.loadProtoFile({root: window.PROTO_ROOT, file: filename}, function(error, result) {
if (error) {
+ var text = 'Error loading protos from ' + filename + ' (root: ' + window.PROTO_ROOT + ') '
+ + (error && error.stack ? error.stack : error);
+ console.log(text);
throw error;
}
var protos = result.build('textsecure');
if (!protos) {
var text = 'Error loading protos from ' + filename + ' (root: ' + window.PROTO_ROOT + ')';
+ console.log(text);
throw new Error(text);
}
for (var protoName in protos) {
diff --git a/test/index.html b/test/index.html
index bb788a81a..0baa87c9d 100644
--- a/test/index.html
+++ b/test/index.html
@@ -590,7 +590,6 @@
-