Improve error message when parameter file is not found

Create issue
Issue #340 closed
Erik Schnetter created an issue

I specified a wrong path "par/recover.par" for a parameter file, and Simfactory didn't find the parameter file. Simfactory's error message was:

Error: specified parfile /project/numrel/eschnett/philip/EinsteinToolkit-hg/simfactory/etc/parfiles/par/recover.par does not exist or is not readable

This is confusing, since the parameter file was not in the "parfiles" directory of Simfactory. Simfactory should list all the places where it looked for a parameter file, and should also output what the user actually specified.

Keyword:

Comments (2)

  1. Roland Haas
    • edited description
    • changed status to resolved

    As of git hash 524c2e5 "Improve error message when a file is not found" of simfactory2 applied on Tue Jan 3 15:56:29 2012 +0000 by Erik the error message is:

    Error: specified parfile "par/recover.par" does not exist or is not readable
       tried paths "/home/rhaas/ET_trunk/par/recover.par"
       and "/home/rhaas/postdoc/ET_trunk/repos/simfactory2/etc/parfiles/par/recover.par",
       working directory is "/home/rhaas/cactus/ET_trunk"
    
  2. Log in to comment