public static ArrayList<String> formatErrors(String[][] errors) {
        String errorIdentifiers = "";
        ArrayList<String> allErrors = new ArrayList<>();

        for (int i = 0; i < errors.length; i++) {
            for (int j = 0; j < errors[i].length; j++) {

                if (errors[i][j] != null) {
                    if (!(errors[i][j].equals(""))) {
                        errorIdentifiers = errorIdentifiers + errors[i][j] + "\n";

                    }
                }

            }

            if (errorIdentifiers.equals("")) {
                errorIdentifiers = "no errors found" + "\n";
            }
            allErrors.add(errorIdentifiers);
            errorIdentifiers = "";
        }

        return allErrors;
    }