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?!
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 returningfalse
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?!