Skip to content

Commit

Permalink
Fixed 2305.
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyCailin committed Mar 26, 2013
1 parent f6ec2d5 commit 0b1c62d
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -34,6 +34,7 @@
import java.util.Map;
import java.util.Set;
import java.util.SortedSet;
import java.util.UnknownFormatConversionException;
import java.util.concurrent.Callable;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down Expand Up @@ -1128,7 +1129,11 @@ public boolean modifyEvent(String key, Construct value, BindableEvent event) {
}
}
if("format".equals(key)){
e.setFormat(value.nval());
try{
e.setFormat(value.nval());
} catch(UnknownFormatConversionException ex){
throw new Exceptions.FormatException(ex.getMessage(), Target.UNKNOWN);
}
}
return true;
}
Expand Down

0 comments on commit 0b1c62d

Please sign in to comment.