During DSC compilation failure, show full error and line number within the DSC script
During DSC compilation failure, show full error and line number within the DSC script.
Currently, you get the line number in the script that is calling and parsing the output of Start-AzureRmAutomationDscCompilationJob. This isn't useful.
Checking the portal, it gives you the same (not truncated) error message, but no line number. Not useful either.
Show the full error and line number both in portal and on the exception passed back to the API.
Troubleshooting compilation can be a frustrating experience. This is an area we plan to address in the future.