GUACAMOLE-204: Fix compile issues - catch() requires braces, and throw should be lower-case.

This commit is contained in:
Nick Couchman authored and Nick Couchman committed 2017-05-17 08:54:21 -04:00
1 parent b278970076
commit fe6d8e2975
1 file changed
+3 -2
@@ -71,8 +71,9 @@ public class TicketValidationService {
Assertion a = sv.validate(ticket, confRedirectURI);
principal = a.getPrincipal();
}
catch (TicketValidationException e)
Throw new GuacamoleException("Ticket validation failed.", e);
catch (TicketValidationException e) {
throw new GuacamoleException("Ticket validation failed.", e);
}
return principal.getName();