Skip to content

Commit 8ec4aa6

Browse files
committed
Fix #344 Raise errors on IdPMetadataParser::parseRemoteXML and IdPMetadataParser::parseFileXML
1 parent 0a98e72 commit 8ec4aa6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Saml2/IdPMetadataParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public static function parseRemoteXML($url, $entityId = null, $desiredNameIdForm
4040
throw new Exception(curl_error($ch), curl_errno($ch));
4141
}
4242
} catch (Exception $e) {
43+
throw new Exception('Error on parseRemoteXML. '.$e->getMessage());
4344
}
4445
return $metadataInfo;
4546
}
@@ -68,6 +69,7 @@ public static function parseFileXML($filepath, $entityId = null, $desiredNameIdF
6869
$metadataInfo = self::parseXML($data, $entityId, $desiredNameIdFormat, $desiredSSOBinding, $desiredSLOBinding);
6970
}
7071
} catch (Exception $e) {
72+
throw new Exception('Error on parseFileXML. '.$e->getMessage());
7173
}
7274
return $metadataInfo;
7375
}

0 commit comments

Comments
 (0)