Skip to content

Commit

Permalink
fix: Change thrown exception type.
Browse files Browse the repository at this point in the history
filzrev committed Jul 29, 2023
1 parent e893940 commit 7f76744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docfx/Models/InitCommand.cs
Original file line number Diff line number Diff line change
@@ -375,7 +375,7 @@ public SingleChoiceQuestion(string content, Action<T, DefaultConfigModel, Questi
ArgumentNullException.ThrowIfNull(options);
ArgumentNullException.ThrowIfNull(converter);

if (options.Length == 0) throw new ArgumentNullException(nameof(options));
if (options.Length == 0) throw new ArgumentOutOfRangeException(nameof(options));

_converter = converter;
Options = options;

0 comments on commit 7f76744

Please sign in to comment.