Skip to content

Commit

Permalink
properly show assembly id as returned by the api response in case of …
Browse files Browse the repository at this point in the history
…ASSEMBLY_NOT_FOUND
  • Loading branch information
tim-kos committed Jul 22, 2014
1 parent 61edba0 commit 1817ace
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/lib/jquery.transloadit2.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,16 +703,18 @@
var text = 'There was an internal error.<br />Please try your upload again.';
this.$modal.$error.html(text).show();

var self = this;
var ip = null;
var assemblyId = err.assemblyId ? err.assemblyId : this.assemblyId;
var self = this;
var ip = null;

$.getJSON(PROTOCOL + 'jsonip.com/', function(ipData) {
ip = ipData.ip;
})
.always(function() {
var details = {
endpoint : err.url,
instance : self.instance,
assembly_id : self.assemblyId,
assembly_id : assemblyId,
ip : ip,
time : self.getUTCDatetime(),
agent : navigator.userAgent,
Expand Down

0 comments on commit 1817ace

Please sign in to comment.