New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throw error when SP URL is null. Closes #6012 #6044
base: main
Are you sure you want to change the base?
Conversation
Thank you @Saurabh7019, we'll review it ASAP! |
src/utils/validation.ts
Outdated
if (!url) { | ||
return false; | ||
if (typeof url !== 'string') { | ||
return 'URL must be a string'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To keep it more in line with the other error, I suggest that we rephrase it a bit to "SharePoint Online site URL must be a string."
Also, let's end the error message with a period.
For the other error that is already there, could we add a period there as well? And maybe let's encapsulate the url
value with single quotes to make it clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing more to add!
Closes #6012