Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 7bd242d

Browse files
committed
[packages,Gcc,4.8] Fixed error messages on mismatched Gcc versions
1 parent 6bb9a88 commit 7bd242d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/Gcc-4.8/bam/Scripts/MetaData.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ public void
8888
var gccVersion = this.Meta["GccVersion"] as string[];
8989
if (System.Convert.ToInt32(gccVersion[0]) != (int)this.Meta["ExpectedMajorVersion"])
9090
{
91-
throw new Bam.Core.Exception ("{0} reports version {1}", gccLocation, gccVersion.ToString ());
91+
throw new Bam.Core.Exception("{0} reports version {1}. Expected {2}.{3}", gccLocation, System.String.Join(".", gccVersion), this.Meta["ExpectedMajorVersion"], this.Meta["ExpectedMinorVersion"]);
9292
}
93-
if (System.Convert.ToInt32 (gccVersion[1]) != (int)this.Meta["ExpectedMinorVersion"])
93+
if (System.Convert.ToInt32(gccVersion[1]) != (int)this.Meta["ExpectedMinorVersion"])
9494
{
95-
throw new Bam.Core.Exception ("{0} reports version {1}", gccLocation, gccVersion.ToString ());
95+
throw new Bam.Core.Exception("{0} reports version {1}. Expected {2}.{3}", gccLocation, System.String.Join(".", gccVersion), this.Meta["ExpectedMajorVersion"], this.Meta["ExpectedMinorVersion"]);
9696
}
9797
}
9898

0 commit comments

Comments
 (0)