Merge pull request #229 from JDonadio/fix/error-message

Fix error message
This commit is contained in:
Matias Alejo Garcia 2016-08-25 14:52:17 -03:00 committed by GitHub
commit 910e4a2f0a
1 changed files with 4 additions and 3 deletions

View File

@ -7,14 +7,15 @@ angular.module('copayApp.controllers').controller('confirmController', function(
// An alert dialog
var showAlert = function(title, msg, cb) {
$log.warn(title + ": " + msg);
var message = msg.message ? msg.message : msg;
$log.warn(title + ": " + message);
var alertPopup = $ionicPopup.alert({
title: title,
template: msg
template: message
});
if (!cb) cb = function() {};
alertPopup.then(cb);
};