Bug 1335543 - Calls the bail function r?jwa draft
authorJay Harris <jharris@mozilla.com>
Wed, 01 Feb 2017 10:30:03 +1300
changeset 468898 ce50024902cfeba937f258e5fbd03bec3ee36138
parent 468498 ee975d32deb9eaa5641f45428cd6a4b5b555a8f5
child 544043 dc560ad85b125bbf87d3f45d0ecc11cad8e242e2
push id43565
push userbmo:jharris@mozilla.com
push dateWed, 01 Feb 2017 00:50:53 +0000
reviewersjwa
bugs1335543
milestone54.0a1
Bug 1335543 - Calls the bail function r?jwa MozReview-Commit-ID: KzUJRCi7tsW
dom/media/test/eme.js
--- a/dom/media/test/eme.js
+++ b/dom/media/test/eme.js
@@ -126,17 +126,17 @@ function UpdateSessionFunc(test, token, 
       if (key) {
         Log(token, "found key " + key + " for key id " + idHex);
         outKeys.push({
           "kty":"oct",
           "kid":id64,
           "k":HexToBase64(key)
         });
       } else {
-        bail(token + " couldn't find key for key id " + idHex);
+        bail(token + " couldn't find key for key id " + idHex)("No such key");
       }
     }
 
     var update = JSON.stringify({
       "keys" : outKeys,
       "type" : msg.type
     });
     Log(token, "sending update message to CDM: " + update);