Skip to content

Commit

Permalink
fix: use return instead of throw
Browse files Browse the repository at this point in the history
  • Loading branch information
Fsalker committed May 6, 2020
1 parent a9cfbd3 commit 99bf347
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/cli-scaffold-graphql-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ module.exports = [
});

if (!rootResourcesPath) {
throw new Error(
`Resources file was not found. Make sure your package is inside of your project's root and that either it or one of its parent directories contains resources.js`
);
return `Resources file was not found. Make sure your package is inside of your project's root and that either it or one of its parent directories contains resources.js`;
}

return true;
Expand Down

0 comments on commit 99bf347

Please sign in to comment.