Have you tried displaying the error code after the mapping?

 Code:
map x: "\\server\share"
if @error
  ? @error + ":" + @serror
endif