Skip to content

Commit 94de82d

Browse files
committed
Fix: more struggles with broken build
1 parent eb4513a commit 94de82d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/Core/Configuration/PlatformDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public virtual IPlatform Load(IServiceProvider services, IProcessorArchitecture
115115
var type = svc.GetType(TypeName);
116116
if (type is null)
117117
throw new TypeLoadException(
118-
string.Format("Unable to load {0} environment.", Description));
118+
$"Unable to load {Description} environment.");
119119
var platform = (Platform)Activator.CreateInstance(type, services, arch)!;
120120
LoadSettingsFromConfiguration(services, platform);
121121
return platform;

src/tools/c2xml/Program.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,13 @@ public int DoExecute(string [] args)
113113
catch (Exception ex)
114114
{
115115
Console.WriteLine(
116-
$"c2xml: an error occurred when loading platform {envElem.Name} ({envElem.TypeName}). {ex.Message}");
116+
$"c2xml: an error occurred when loading platform {envElem.Name} ({envElem.TypeName}).");
117+
for (Exception e = ex; e is not null; e = e.InnerException)
118+
{
119+
Console.WriteLine($" {e.Message}");
120+
}
117121
Console.WriteLine(ex.StackTrace);
122+
Console.WriteLine("Constructor(s):");
118123
return 1;
119124
}
120125

0 commit comments

Comments
 (0)