You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throw error if there are no functions matching the language set by the runtime (#3599)
* Update IsSingleLanguage to return false if there are no functions matching the FUNCTIONS_RUNTIME_WORKER
* Update exception message
* Addressing comments
* Adding exception case to check if functions are dotnet
* Fixing null argument tests
* Warning user rather than throwing
* Throwing argument null exception
* Argument name for null exception
* Using nameof to get argument name
* Fixing typo
thrownewHostInitializationException($"Found functions with more than one language. Select a language for your function app by specifying {LanguageWorkerConstants.FunctionWorkerRuntimeSettingName} AppSetting");
719
+
if(string.IsNullOrEmpty(_currentRuntimeLanguage))
720
+
{
721
+
_logger.LogWarning($"Select a language for your function app by specifying {LanguageWorkerConstants.FunctionWorkerRuntimeSettingName} AppSetting");
722
+
}
723
+
else
724
+
{
725
+
_logger.LogWarning($"Did not find functions with language [{_currentRuntimeLanguage}].");
0 commit comments