23 December 2003

    Bad compiler error messages suck

    This one is from visual studio:
    C:\home\mikal\webservice-statepersistance-xmlmagic\wwwroot\Service1.asmx.cs(329): ) expected
    
    The problem?
    [WebMethod]
    public string RecordSave(string	instate)
    {
    	// TODO
    }
    
    Should have read:
    [WebMethod]
    public string RecordSave(string	instate)
    {
    	// TODO
    	return "";
    }
    
    A more helpful error message would have saved me some significant time looking for orphan brackets.

posted at: 22:00 | path: /diary | permanent link to this entry



    Add a comment to this post:

    Your name:

    Your email: Email me new comments on this post
      (Your email will not be published on this site, and will only be used to contact you directly with a reply to your comment if needed. Oh, and we'll use it to send you new comments on this post it you selected that checkbox.)


    Your website:

    Comments:


    Because of excessive load, this site is generated statically every several hours. Therefore, your comment may take some time to appear here. Unless you get an error message when you click the select button below, then all is normal and the comment will appear in due course.