Skip to content

Commit 5de6bb7

Browse files
committed
Simplified no context message.
1 parent 9c6fe1a commit 5de6bb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/Admin/GetTenantInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private string BuildRequestUrl()
6161
}
6262
else
6363
{
64-
throw new InvalidOperationException($"The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect.");
64+
throw new InvalidOperationException($"You are not signed in. Please use Connect-PnPOnline to connect.");
6565
}
6666
break;
6767
}

src/Commands/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
<value>No list found with id, title or url '{0}'</value>
152152
</data>
153153
<data name="NoDefaultSharePointConnection" xml:space="preserve">
154-
<value>The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect.</value>
154+
<value>You are not signed in. Please use Connect-PnPOnline to connect.</value>
155155
</data>
156156
<data name="NoSharePointConnectionInProvidedConnection" xml:space="preserve">
157157
<value>The provided connection through -Connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect.</value>

0 commit comments

Comments
 (0)