Skip to content

Commit 2aadebf

Browse files
committed
Fix #344 Raise errors on IdPMetadataParser::parseRemoteXML and IdPMetadataParser::parseFileXML
1 parent f04314e commit 2aadebf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Saml2/IdPMetadataParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public static function parseRemoteXML($url, $entityId = null, $desiredNameIdForm
5656
throw new Exception(curl_error($ch), curl_errno($ch));
5757
}
5858
} catch (Exception $e) {
59+
throw new Exception('Error on parseRemoteXML. '.$e->getMessage());
5960
}
6061
return $metadataInfo;
6162
}
@@ -84,6 +85,7 @@ public static function parseFileXML($filepath, $entityId = null, $desiredNameIdF
8485
$metadataInfo = self::parseXML($data, $entityId, $desiredNameIdFormat, $desiredSSOBinding, $desiredSLOBinding);
8586
}
8687
} catch (Exception $e) {
88+
throw new Exception('Error on parseFileXML. '.$e->getMessage());
8789
}
8890
return $metadataInfo;
8991
}

0 commit comments

Comments
 (0)