changed error message for missing datafile to include filename

This commit is contained in:
Arndt 2015-02-08 10:05:50 +01:00
parent 5f34b5cf41
commit 0fe5d5144a
3 changed files with 18 additions and 2 deletions

View file

@ -298,9 +298,13 @@ public class RoutingEngine extends Thread
return mwp;
}
}
if ( minRingWith == 1 && nodesCache.first_file_access_failed )
{
throw new IllegalArgumentException( "datafile " + nodesCache.first_file_access_name + " not found" );
}
if ( minRingWith++ == 5 )
{
throw new IllegalArgumentException( wp.name + "-position not mapped" );
throw new IllegalArgumentException( wp.name + "-position not mapped in existing datafile" );
}
}
}