Ignore:
Timestamp:
Dec 18, 2012, 3:45:34 PM (7 years ago)
Author:
mmoll@…
Message:

math/slepc: better error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/slepc/Portfile

    r100496 r100640  
    4343    pre-fetch {
    4444        if {![file exists ${prefix}/lib/libparpack.a]} {
    45             ui_error "Please install the openmpi or mpich2 variant of arpack first."
     45            return -code error "Please install the openmpi or mpich2 variant of arpack first."
    4646        }
    4747    }
     
    5656    }
    5757    if {${fortrandir} == ""} {
    58         ui_error "Please install a fortran compiler by installing one of the following ports:\n\tgcc42, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, or g95."
     58        ui_error "Install a fortran compiler by installing one of these ports:"
     59        ui_error "gcc42, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, or g95."
     60        return -code error "No fortran compiler installed"
    5961    }
    6062    depends_lib-append      port:arpack
Note: See TracChangeset for help on using the changeset viewer.