Skip to content

Commit

Permalink
Merge pull request #33 from AthennaIO/develop
Browse files Browse the repository at this point in the history
fix(template): set resource on file exception
  • Loading branch information
jlenon7 authored Jul 7, 2022
2 parents 5f289b4 + 426f4f5 commit 3df80e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/artisan",
"version": "1.3.2",
"version": "1.3.3",
"description": "The Athenna CLI application. Built on top of commander.",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/TemplateHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class TemplateHelper {
)

if (await File.exists(path)) {
throw new AlreadyExistFileException('controller', path)
throw new AlreadyExistFileException(resource, path)
}

return new File(path, content).load()
Expand Down

0 comments on commit 3df80e3

Please sign in to comment.