mac-cain13 / notificato

Takes care of Apple push notifications (APNS) in your PHP projects.
MIT License
224 stars 44 forks source link

Certificate throws PEM not found exception without the path #23

Closed mac-cain13 closed 11 years ago

mac-cain13 commented 11 years ago

When giving the Certificate constuctor an invalid PEM path you get this exception: [InvalidArgumentException] Could not find the given PEM file "".

The call to realpath() is returning false whenever the file doesn't exist. Because of this the exception doesn't show what path was given.

Is the realpath-call really usefull here? Should we remove it or should we keep the realpath-call and show the original path in the exception if realpath failed?!