We had a problem when deploying a service because it failed running a command. The only error we got was:
▸ Evaluation failed with: argument error
We did not know what is causing the error and where it is coming from, so we were forced to monkey-patch distillery to get more details. We've updated the rescue-block in Mix.Releases.Runtime.Control.eval/2 to give us the error messages and the stacktrace. After doing so, we got this.
This PR updates Mix.Releases.Runtime.Control.eval/2 to have a consistent error message (incl. stacktrace).
Checklist
[ ] New functions have typespecs, changed functions were updated
[ ] Same for documentation, including moduledocs
[ ] Tests were added or updated to cover changes
[x] Commits were squashed into a single coherent commit
Licensing/Copyright
By submitting this PR, you agree to the following statement, please read before submission!
I certify that I own, and have sufficient rights to contribute, all source code and
related material intended to be compiled or integrated with the source code for Distillery
(the "Contribution"). My Contribution is licensed under the MIT License.
Summary of changes
We had a problem when deploying a service because it failed running a command. The only error we got was:
We did not know what is causing the error and where it is coming from, so we were forced to monkey-patch distillery to get more details. We've updated the
rescue
-block inMix.Releases.Runtime.Control.eval/2
to give us the error messages and the stacktrace. After doing so, we got this.Yay! :tada: We forgot to start
otter
.This PR updates
Mix.Releases.Runtime.Control.eval/2
to have a consistent error message (incl. stacktrace).Checklist
Licensing/Copyright
By submitting this PR, you agree to the following statement, please read before submission!
I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for Distillery (the "Contribution"). My Contribution is licensed under the MIT License.