openbaton/dashboard

ShowError method

Closed this issue · 1 comments

showError method is not consistent. In some controllers, it takes data as the first parameter and in some status. ShowError method is not working at many places because of the mismatch.

error(function (data, status) {
                console.error('STATUS: ' + status + ' DATA: ' + data);
                showError(status, JSON.stringify(data));
            });