Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3424

Show
Ignore:
Timestamp:
04/09/08 15:09:09 (8 months ago)
Author:
larsivi
Message:

More descriptive error messages - closes #1031, thanks mandel.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/text/locale/Core.d

    r3349 r3424  
    296296    Culture culture = getCultureInternal(cultureID, null); 
    297297    if (culture is null) 
    298       error("Culture is not supported."); 
     298 
     299version (Posix) { 
     300    error ("Culture not found - if this was not tried set by the application, Tango\n" 
     301            ~ "will expect that a locale is set via environment variables LANG or LC_ALL."); 
     302
     303else { 
     304    error ("Culture not found - if this was not tried set by the application, Tango\n" 
     305            ~ "will expect that a locale is set for the system ."); 
     306
    299307    return culture; 
    300308  } 
  • trunk/tango/text/locale/Data.d

    r2878 r3424  
    367367    } 
    368368 
    369     error ("Culture is not supported."); 
     369version (Posix) { 
     370    error ("Culture not found - if this was not tried set by the application, Tango " 
     371            ~ "will expect that a locale is set via environment variables LANG or LC_ALL."); 
     372
     373else { 
     374    error ("Culture not found - if this was not tried set by the application, Tango " 
     375            ~ "will expect that a locale is set for the system ."); 
     376
    370377    return null; 
    371378  }