Changeset 163


Ignore:
Timestamp:
12/13/07 15:08:35 (5 years ago)
Author:
saua
Message:

somewhat better error message when we can't connect to the GPS puck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/gps/Gps.java

    r159 r163  
    118118                } catch (final IllegalArgumentException ex) { 
    119119                        // happens with malformed URLs 
    120                         Log.log(this, ex, "Error opening connection to " + url); 
     120                        Log.log(this, ex, "Malformed URL: " + url); 
    121121                        throw new LocationException("Error while opening Bluetooth connection: " + ex.getMessage()); 
    122122                } catch (final IOException ex) { 
    123123                        Log.log(this, ex, "Error opening connection to " + url); 
    124                         throw new LocationException("Error while opening Bluetooth connection: " + ex.getMessage()); 
     124                        throw new LocationException("Failed to connect to GPS puck, is the device switched on?"); 
    125125                } 
    126126                mThread = new Thread(new DataReader(inputStream, streamConnection)); 
Note: See TracChangeset for help on using the changeset viewer.