From 426f4f5d4b411bf749f43c22e5eb649cb176f442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Thu, 7 Jul 2022 15:47:17 -0300 Subject: [PATCH] fix(template): set resource on file exception --- package-lock.json | 4 ++-- package.json | 2 +- src/Helpers/TemplateHelper.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 95f491e..35922c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/artisan", - "version": "1.3.0", + "version": "1.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@athenna/artisan", - "version": "1.3.0", + "version": "1.3.3", "license": "MIT", "dependencies": { "@athenna/ioc": "1.2.3", diff --git a/package.json b/package.json index 5f4a0e8..c029a09 100644 --- a/package.json +++ b/package.json @@ -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 ", diff --git a/src/Helpers/TemplateHelper.js b/src/Helpers/TemplateHelper.js index 8e97bd2..51abc1e 100644 --- a/src/Helpers/TemplateHelper.js +++ b/src/Helpers/TemplateHelper.js @@ -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()