<html>#340: Improve error message when parameter file is not found
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Erik Schnetter</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>resolved</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>SimFactory</td></tr>
</table>

<p>Changes (by Roland Haas):</p>
<p><table>
<tr><td>status:</td><td>resolved (was new)</td></tr>
</table></p>
<p>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:</p>
<p>Error: specified parfile /project/numrel/eschnett/philip/EinsteinToolkit-hg/simfactory/etc/parfiles/par/recover.par does not exist or is not readable</p>
<p>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.</p>
<p><strong>Keyword:</strong></p>
<p>Comment (by Roland Haas):</p>
<p>As of git hash <a data-is-external-link="true" href="https://bitbucket.org/simfactory/simfactory2/commits/524c2e5a6d6115884798de0754f392f4d8d5dec9" rel="nofollow">524c2e5</a> "Improve error message when a file is not found" of <a data-is-external-link="true" href="https://bitbucket.org/simfactory/simfactory2" rel="nofollow">simfactory2</a> applied on Tue Jan 3 15:56:29 2012 +0000 by Erik the error message is:</p>
<div class="codehilite"><pre><span></span><span class="n">Error</span><span class="o">:</span> <span class="n">specified</span> <span class="n">parfile</span> <span class="s2">&quot;par/recover.par&quot;</span> <span class="n">does</span> <span class="n">not</span> <span class="n">exist</span> <span class="n">or</span> <span class="k">is</span> <span class="n">not</span> <span class="n">readable</span>
   <span class="n">tried</span> <span class="n">paths</span> <span class="s2">&quot;/home/rhaas/ET_trunk/par/recover.par&quot;</span>
   <span class="n">and</span> <span class="s2">&quot;/home/rhaas/postdoc/ET_trunk/repos/simfactory2/etc/parfiles/par/recover.par&quot;</span><span class="o">,</span>
   <span class="n">working</span> <span class="n">directory</span> <span class="k">is</span> <span class="s2">&quot;/home/rhaas/cactus/ET_trunk&quot;</span>
</pre></div>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/340/improve-error-message-when-parameter-file'>https://bitbucket.org/einsteintoolkit/tickets/issues/340/improve-error-message-when-parameter-file</a></p>
</html>