         alertService.add("success", "#{newGroup.name} was created!", 3000)
         onSuccess?(newGroup)
       (failure) ->
-        alertService.add("danger", failure.data.error, 6000)
+        alertService.add("danger", failure.data?.error || "Unknown Error", 6000)
         onFailure?(failure)
     )
 

        )
        onSuccess?(groupSet.groups)
      (failure) ->
        alertService.add("danger", failure.data.error, 6000)
        onFailure?(failure)
    )


        else
          group.getMembers(onSuccess, onFailure)
      (failure) ->
        alertService.add("danger", failure.data?.error || "Unknown Error", 6000)
        onFailure?(failure)
    )

