firebase-tools
firebase-tools copied to clipboard
firebase deploy --only function:somefunction does not give an error if this function does not exist
[REQUIRED] Environment info
firebase-tools: 9.16
Platform: macOS
[REQUIRED] Test case
The test case is to just try deploying a single function that is not in the project directory.
[REQUIRED] Steps to reproduce
firebase deploy --only functions:someFunctionThatDoesNotExist
[REQUIRED] Expected behavior
firebase tools should return an error or a message that deployment did not succeed.
[REQUIRED] Actual behavior
firebase tools returns the message "Deploy Complete". If using the --debug flag,
0 Functions Deployed
0 Functions Errored
is shown. Of course, this is something minor, but from a quick glance at the terminal it is not clear that the function did not deploy. This is especially the case if the only flag is used with multiple functions where there is a typo in only one of them.
Internal bug #209905520
I hit this issue today as well. I expected an error to occur.