Skip to content

Commit

Permalink
Fix undefined methodName in error()
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHandy committed Sep 19, 2019
1 parent 074a7a9 commit 5029fc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/IndoorAtlas.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ function IndoorAtlas() {
// none of the Cordova callbacks are supposed to fail, always report
// as status OUT_OF_SERVICE if something like this happens
function error(result) {
var message = 'internal error' + methodName + ' failed ' + JSON.stringify(result);
//var message = 'internal error' + methodName + ' failed ' + JSON.stringify(result);
var message = 'internal error ' + JSON.stringify(result);
console.error('IndoorAtlas ERROR: ' + message);
if (callbacks.onStatus) {
callbacks.onStatus(CurrentStatus.OUT_OF_SERVICE, message);
Expand Down

0 comments on commit 5029fc5

Please sign in to comment.