microsoft / alguidelines

Best Practices and Design Patterns for the AL Language
https://alguidelines.dev/
MIT License
129 stars 48 forks source link

Error Message Processing #188

Closed tscottjendev closed 2 years ago

tscottjendev commented 2 years ago

Please fix the indentation of the code. It is incorrect under the "else"

Existing

    END ELSE
        TempErrorMessage.LogSimpleMessage(TempErrorMessage."Message Type"::Error,NoSATAccountDefinedErr);

        IF NOT TempErrorMessage.HasErrors(TRUE) THEN
            SaveXMLToClient(Document,Year,Month,'CT');
        TempErrorMessage.ShowErrorMessages(FALSE);

Should be

    END ELSE
        TempErrorMessage.LogSimpleMessage(TempErrorMessage."Message Type"::Error,NoSATAccountDefinedErr);

     IF NOT TempErrorMessage.HasErrors(TRUE) THEN
         SaveXMLToClient(Document,Year,Month,'CT');
     TempErrorMessage.ShowErrorMessages(FALSE);
waldo1001 commented 2 years ago

Done! :-)