[GRASS-dev] [GRASS GIS] #2326: Command functions in grass.script.core miss a correct error reporting

GRASS GIS trac at osgeo.org
Tue Nov 11 08:29:28 PST 2014


#2326: Command functions in grass.script.core miss a correct error reporting
--------------------------------+-------------------------------------------
 Reporter:  wenzeslaus          |       Owner:  grass-dev@…              
     Type:  enhancement         |      Status:  new                      
 Priority:  major               |   Milestone:  7.1.0                    
Component:  Python              |     Version:  svn-trunk                
 Keywords:  script, exceptions  |    Platform:  All                      
      Cpu:  Unspecified         |  
--------------------------------+-------------------------------------------

Comment(by neteler):

 While no crash occurs any more with r62705, it doesn't stop any longer on
 error:

 {{{
 GRASS 7.1.svn (nc_spm_08_grass7):~ > r.basin map=elevation prefix=my_basin
 coord=637500.0,221750.0 dir=/tmp/bla threshold=1000 --o
 WARNING: 'r.hypso' required. Please install 'r.hypso' first using
          'g.extension r.hypso'
 WARNING: 'r.stream.basins' required. Please install 'r.stream.basins'
 first
          using 'g.extension r.stream.basins'
 WARNING: 'r.stream.distance' required. Please install 'r.stream.distance'
          first using 'g.extension r.stream.distance'
 WARNING: 'r.stream.order' required. Please install 'r.stream.order' first
          using 'g.extension r.stream.order'
 WARNING: 'r.stream.snap' required. Please install 'r.stream.snap' first
          using 'g.extension r.stream.snap'
 WARNING: 'r.stream.stats' required. Please install 'r.stream.stats' first
          using 'g.extension r.stream.stats'
 WARNING: 'r.width.funct' required. Please install 'r.width.funct' first
          using 'g.extension r.width.funct'
 ERROR: An ERROR occurred running r.basin
 SECTION 1 beginning: Initiating Variables. 4 sections total.
 SECTION 1a: Mark masked and NULL cells
 ...
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2326#comment:33>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list