Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
error produced by previous changes is now more descriptive
Browse files Browse the repository at this point in the history
Signed-off-by: Holly Hunt <[email protected]>
  • Loading branch information
Wyvinar committed Jun 7, 2024
1 parent 9c171f2 commit ae270c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi2beans/pkg/generator/yaml2java.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func generateDirectories(fs files.FileSystem, storeFilepath string, force bool)
if err == nil {
if exists {
if !force {
err = openapi2beans_errors.NewError("generateDirectories: files located in directory requested to to produce beans in: %s", storeFilepath)
err = openapi2beans_errors.NewError("The tool is unable to create files in folder %s because files in that folder already exist. Generating files is a destructive operation, removing all Java files in that folder prior to new files being created.\nIf you wish to proceed, delete the files manually, or re-run the tool using the --force option", storeFilepath)
}
if err == nil {
err = deleteAllJavaFiles(fs, storeFilepath)
Expand Down

0 comments on commit ae270c5

Please sign in to comment.