Changeset 6334


Ignore:
Timestamp:
19/01/10 14:36:22 (10 years ago)
Author:
domlowe
Message:

Fixed 403 bug reported in  http://proj.badc.rl.ac.uk/badc/ticket/21468

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/public/js/layerControl.js

    r6191 r6334  
    210210            this.tree.removeNode(loadingNode); 
    211211            this.redrawTree(); 
    212             alert('Login to secure service was unsucessful'); 
     212            if (resp.status == 403){ 
     213            alert('Login to secure service was unsucessful: you are logged in but do not have the correct permissions to access this data.'); 
     214            } 
     215            else {alert('Login to secure service was unsucessful: the server responded with - '+ resp.text) 
     216                 } 
    213217            return false; 
    214218        }; 
    215  
     219         
    216220        var onRetriveWMCFail = function (resp) { 
    217221            WMSC.log('response status = ' + resp.status); 
Note: See TracChangeset for help on using the changeset viewer.