Skip to content

Commit 3613a0d

Browse files
committed
fix: error message
refs: #49
1 parent 76f1a63 commit 3613a0d

File tree

3 files changed

+2
-37
lines changed

3 files changed

+2
-37
lines changed

src/Generators/ServiceGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function generate(): void
3030
if (!$this->classExists('models', $this->model)) {
3131
$this->throwFailureException(
3232
exceptionClass: ClassNotExistsException::class,
33-
failureMessage: "Cannot create {$this->model} Model cause {$this->model} Model does not exists.",
33+
failureMessage: "Cannot create {$this->model}Service cause {$this->model} Model does not exists.",
3434
recommendedMessage: "Create a {$this->model} Model by himself or run command 'php artisan make:entity {$this->model} --only-model'.",
3535
);
3636
}

tests/ServiceGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testMissingModel()
2222

2323
$this->assertExceptionThrew(
2424
className: ClassNotExistsException::class,
25-
message: 'Cannot create Post Model cause Post Model does not exists. '
25+
message: 'Cannot create PostService cause Post Model does not exists. '
2626
. "Create a Post Model by himself or run command 'php artisan make:entity Post --only-model'",
2727
);
2828

tests/Support/Seeder/SeederMockTrait.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)