[MRM-580] Web app does not give error message when one defines an illegal directory for a Managed Repository

-merged from trunk -r697047


git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.1.x@697061 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2008-09-19 11:32:29 +00:00
parent ca422b2be8
commit 3828939a86
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public abstract class AbstractManagedRepositoriesAction
}
if ( !file.exists() || !file.isDirectory() )
{
throw new IOException( "unable to add repository - can not create the root directory: " + file );
throw new IOException( "Unable to add repository - no write access, can not create the root directory: " + file );
}
configuration.addManagedRepository( repository );

View File

@ -30,7 +30,7 @@
<h1>Admin: Add Managed Repository</h1>
<div id="contentArea">
<ww:actionerror/>
<ww:actionmessage/>
<ww:form method="post" action="addRepository!commit" namespace="/admin" validate="true">
<ww:textfield name="repository.id" label="Identifier" size="10" required="true"/>