Get Azure functions operation (#1228)

* add GetAzureFunctions

* add tests

* cleanup

* check for quotes

* address other comments

* add logging and let error result get sent

* rename file
This commit is contained in:
Kim Santiago
2021-08-18 17:05:27 -07:00
committed by GitHub
parent ccd2ec446d
commit c20af4f777
10 changed files with 201 additions and 16 deletions

View File

@@ -7,6 +7,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Diagnostics;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -87,13 +88,10 @@ namespace Microsoft.SqlTools.ServiceLayer.AzureFunctions
Success = true
};
}
catch (Exception e)
catch (Exception ex)
{
return new ResultStatus()
{
Success = false,
ErrorMessage = e.ToString()
};
Logger.Write(TraceEventType.Information, $"Failed to add sql binding. Error: {ex.Message}");
throw ex;
}
}