mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
When axios receives a 4XX/5XX response it throws an error, causing execution to jump to the catch block. saveCookies() was only called in the try block (2XX path), so error-status cookies were silently dropped in collection runs. Fix applied to both affected code paths: - packages/bruno-cli/src/runner/run-single-request.js (CLI runner) - packages/bruno-electron/src/ipc/network/index.js (app collection runner) Manual single-request execution was already correct — saveCookies() is called after the try/catch there, so both status paths were covered. Fixes #7475