Skip to content

Commit

Permalink
Update TextLoader.cs (dotnet#129)
Browse files Browse the repository at this point in the history
Make a 'not supported field type' exception more readable, so the developer could figure out why he can't load the data
This closes dotnet#128
  • Loading branch information
v-tsymbalistyi authored and glebuk committed May 11, 2018
1 parent ea07be8 commit 3780923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.ML/TextLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private string TypeToName(Type type)
else if (type == typeof(bool))
return "BL";
else
throw new Exception("Type not implemented or supported."); //Add more types.
throw new System.NotSupportedException("Type ${type.FullName} is not implemented or supported."); //Add more types.
}

public ILearningPipelineStep ApplyStep(ILearningPipelineStep previousStep, Experiment experiment)
Expand Down

0 comments on commit 3780923

Please sign in to comment.