Skip to content

Commit cd198e0

Browse files
committed
Change from error to warning. Update message to user.
1 parent 985805c commit cd198e0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Lusas_Adapter/CRUD/Create/Loads/Loadcase.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,19 @@ private IFLoadcase CreateLoadcase(Loadcase loadcase)
5353
lusasLoadcase = (IFLoadcase)d_LusasData.getLoadset(loadcase.Name);
5454
if (lusasLoadcase.getID() != loadcase.Number)
5555
{
56-
Compute.RecordError($"A loadcase with the name {loadcase.Name} already exists but the number does not match with the loadcase being pushed./nMake sure you are using a unique name and number.");
56+
Compute.RecordWarning(
57+
$"A loadcase with the name {loadcase.Name} already exists but the number {lusasLoadcase.getID()} does not match with the loadcase being pushed: {loadcase.Name}, {loadcase.Number}. /n" +
58+
$"Make sure you are using a unique name and number. {lusasLoadcase.getName()} has been used");
5759
};
5860
}
5961
if (d_LusasData.existsLoadset(loadcase.Number))
6062
{
6163
lusasLoadcase = (IFLoadcase)d_LusasData.getLoadset(loadcase.Number);
6264
if (lusasLoadcase.getName() != loadcase.Name)
6365
{
64-
Compute.RecordError($"A loadcase with the number {loadcase.Number} already exists but the name does not match with the loadcase being pushed./nMake sure you are using a unique name and number.");
66+
Compute.RecordWarning(
67+
$"A loadcase with the number {loadcase.Number} already exists but the name {lusasLoadcase.getName()} does not match with the loadcase being pushed: {loadcase.Name}, {loadcase.Number}. /n" +
68+
$"Make sure you are using a unique name and number. {lusasLoadcase.getName()} has been used");
6569
};
6670
}
6771
else

0 commit comments

Comments
 (0)