/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ProjectTemplates/Shared/ErrorMessages.cs
21 строка
814 B
Pranav K
Use file scoped namespaces (#38076)
06 ноя 2021, 03:52
Не верифицирован
06 ноя 2021, 03:52
a450cb6
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Internal; namespace Templates.Test.Helpers; internal static class ErrorMessages { public static string GetFailedProcessMessage(string step, Project project, ProcessResult processResult) { return $@"Project {project.ProjectArguments} failed to {step}. Exit code {processResult.ExitCode}. {processResult.Process}\nStdErr: {processResult.Error}\nStdOut: {processResult.Output}"; } public static string GetFailedProcessMessageOrEmpty(string step, Project project, ProcessEx process) { return process.HasExited ? $@"Project {project.ProjectArguments} failed to {step}. {process.GetFormattedOutput()}" : ""; } }