import math


def find_hypotenuse_right_triangle(side1, side2):
    """
    Find the hypotenuse of a triangle.
    :returns: Hypotenuse or -1 if error
    """
    if side1 != 0 and side2 != 0:
        return math.sqrt((side1 * side1) + (side2 * side2))
    else:
        return -1