Skip to content

Commit

Permalink
WELDX-76: Uses error message from validator instead of reproducing one.
Browse files Browse the repository at this point in the history
  • Loading branch information
peteroyle authored and peteroyle committed Feb 17, 2010
1 parent 6ce5754 commit a0f375e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -46,7 +46,9 @@ public void printHello( @Observes ContainerInitialized init )
System.out.println( "Hello " + argsValidator.getValidParameters().get( 0 ) );
} else
{
System.out.println( "Please provide just one argument: your first name" );
for (String error : argsValidator.getErrors()) {
System.out.println( error );
}
}
}

Expand Down

0 comments on commit a0f375e

Please sign in to comment.