[FIX] show error message if srvid can not be build;
[FIX] corrected return-code-handling;