Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed May 27, 2019
1 parent 56b85e9 commit 6628cc1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/resourceFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ const resourceFactory = {
log.warn(`resourceFactory.createCollectionsForTree called with deprecated parameter "useNamespaces". ` +
`This parameter will be removed in @ui5/fs version 2.0. ` +
`Use parameter "getVirtualBasePathPrefix" instead`);
if (getVirtualBasePathPrefix) {
throw new Error(`resourceFactory.createCollectionsForTree called with useNamespace and getVirtualBasePathPrefix`)
}
}
if (useNamespaces && getVirtualBasePathPrefix) {
throw new Error(
`resourceFactory.createCollectionsForTree called with parameters "useNamespace" and ` +
`"getVirtualBasePathPrefix". Please provide only one of the two.`);
}

function processDependencies(project) {
Expand Down

0 comments on commit 6628cc1

Please sign in to comment.