better error message for server mode