Skip to content

Commit

Permalink
improve error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Mar 19, 2024
1 parent 4f2abc5 commit f9576e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/companion/src/config/companion.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const validateConfig = (companionOptions) => {
if (server && server.path) {
// see https://github.com/transloadit/uppy/issues/4271
// todo fix the code so we can allow `/`
if (server.path === '/') throw new Error('server.path cannot be set to /')
if (server.path === '/') throw new Error('If you want to use \'/\' as server.path, leave the \'path\' variable unset')
}

if (providerOptions) {
Expand Down

0 comments on commit f9576e5

Please sign in to comment.