Skip to content

Commit 25f4c2d

Browse files
committed
Adding default param instruction, changing exception to be a bit less technical to end users
1 parent 4592196 commit 25f4c2d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Commands/Navigation/AddNavigationNode.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
namespace PnP.PowerShell.Commands.Branding
99
{
10-
11-
[Cmdlet(VerbsCommon.Add, "PnPNavigationNode")]
10+
[Cmdlet(VerbsCommon.Add, "PnPNavigationNode", DefaultParameterSetName = ParameterSet_Default)]
1211
[OutputType(typeof(NavigationNode))]
1312
public class AddNavigationNode : PnPWebCmdlet
1413
{
@@ -122,7 +121,7 @@ protected override void ExecuteCmdlet()
122121
}
123122
else
124123
{
125-
throw new Exception("Navigation Node Collection is null");
124+
throw new Exception("Unable to define Navigation Node collection to add the node to");
126125
}
127126
}
128127
}

0 commit comments

Comments
 (0)