This echo seems pointless.  Given how serverdir is called, this text will never see the light of day. Do you want to catch the error and complain in the callers, instead?