Exit status -1 on finding zero tenants. Why? #447
ChristiaanBilthof
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi @ChristiaanBilthof, feel free to create a PR. Thanks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question regarding the following piece of code in the trait ("Spatie\Multitenancy\Commands\Concerns\TenantAware").
This code returns a -1 exit code (which results in a 255 exit-code in Bash) meaning this will fail when running a pipeline or sequence of scripts (using script concatination with '&&').
This means that when I'm deploying to a new setup, my pipeline will always fail because there are no tenants, which makes sense because my new setup does not contain any tenants yet.
So I was wondering, could this be removed (or moved into a config setting perhaps to let the user decide how they wish to handle this), or changed in favor of just a 'log' and not an error exit-code?
Maybe I've missed why this is important but I only see this as unhelpful for now.
Awesome package btw! Thanks, Chris
Beta Was this translation helpful? Give feedback.
All reactions