Skip to content

Commit e0de328

Browse files
committed
try/catch on sample handler load
1 parent 9d7650b commit e0de328

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

Synapse.Common/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
// by using the '*' as shown below:
3939
// [assembly: AssemblyVersion("1.0.*")]
4040
[assembly: AssemblyVersion( "0.1.0.0" )]
41-
[assembly: AssemblyFileVersion( "0.1.17135.0" )]
41+
[assembly: AssemblyFileVersion( "0.1.17139.0" )]

Synapse.Core/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737
// by using the '*' as shown below:
3838
// [assembly: AssemblyVersion("1.0.*")]
3939
[assembly: AssemblyVersion( "0.1.0.0" )]
40-
[assembly: AssemblyFileVersion( "0.1.17135.0" )]
40+
[assembly: AssemblyFileVersion( "0.1.17139.0" )]

Synapse.cli/Program.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ static void CreateSamplePlan(string handlerCsvList, string outPath, bool verbose
152152
a.Handler = new HandlerInfo();
153153
a.Actions = null;
154154

155-
IHandlerRuntime hr = AssemblyLoader.Load( handlerType, handlerType );
155+
IHandlerRuntime hr = null;
156+
try
157+
{
158+
hr = AssemblyLoader.Load( handlerType, handlerType );
159+
}
160+
catch { }
156161

157162
if( hr != null )
158163
{
@@ -165,7 +170,7 @@ static void CreateSamplePlan(string handlerCsvList, string outPath, bool verbose
165170
}
166171
else
167172
{
168-
a.Handler.Type = $"Could not load [{handlerType}].";
173+
a.Handler.Type = $"** Error - Could not load [{handlerType}].";
169174
}
170175

171176
p.Actions.Add( a );

Synapse.cli/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion( "0.1.0.0" )]
36-
[assembly: AssemblyFileVersion( "0.1.17135.0" )]
36+
[assembly: AssemblyFileVersion( "0.1.17139.0" )]

0 commit comments

Comments
 (0)