flarectl/firewall_rules: ensure we return errors and halt#586
flarectl/firewall_rules: ensure we return errors and halt#586jacobbednarz merged 1 commit intomasterfrom
Conversation
Updates the error handling in the `flarectl` firewall rules to return the exception should we recieve one and not continue on triggering a panic due to `resp.Result` being nil. Fixes #585
|
@jsha would you mind pulling this one locally and confirming it fixes your issue? in the other thread, i see you mentioned you got a different authentication error however i suspect mine is just due to missing permissions which should demonstrate the same codepath. |
|
in the linked issue, i also think cloudflare-go/cmd/flarectl/firewall.go Lines 356 to 378 in 9f836c4 i think |
|
Works like a charm! And you're right about the |
|
awesome, i'll tee this up for the next release. |

Updates the error handling in the
flarectlfirewall rules to returnthe exception should we recieve one and not continue on triggering a
panic due to
resp.Resultbeing nil.Fixes #585