fix(ci): attach cause when rethrowing bridge-restore failure (v0.18.1-beta)

The backend Lint job failed on the new createBond error path: ESLint's
preserve-caught-error rule (in effect since the eslint 10.7 bump) requires a
rethrown error to carry the original. Pass `{ cause: err }`, which also makes the
underlying RouterOS failure visible in the error chain instead of only inside the
message string.

No behavior change beyond the richer error. Verified with the exact CI commands:
`npm run lint` and `npm run build` both exit 0, 133 backend tests pass, and the
redeployed build still guards correctly (guarded change commits, disabling the
management service is refused with 409).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2GT-Rich
2026-08-10 08:34:58 -07:00
co-authored by Claude Opus 4.8
parent 3a18cb1d91
commit 23a45703a5
5 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
A self-hosted, full-stack network management platform for MikroTik devices. Monitor, configure, and manage your entire MikroTik infrastructure — routers, switches, and wireless access points — from a single web interface.
![Version](https://img.shields.io/badge/version-0.18.0_Beta-blue)
![Version](https://img.shields.io/badge/version-0.18.1_Beta-blue)
![License](https://img.shields.io/badge/license-AGPLv3-blue)
![Docker](https://img.shields.io/badge/docker-compose-2496ED?logo=docker&logoColor=white)
![TypeScript](https://img.shields.io/badge/TypeScript-5.3-3178C6?logo=typescript&logoColor=white)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mikrotik-manager-backend",
"version": "0.18.0-beta",
"version": "0.18.1-beta",
"description": "Mikrotik Network Management Platform - Backend API",
"main": "dist/index.js",
"scripts": {
@@ -2773,7 +2773,8 @@ export class DeviceCollector {
throw new Error(
`Bond '${name}' was created, but adding it to bridge '${originalBridge}' failed: ` +
`${(err as Error).message}. The member ports (${slaves.join(', ')}) are no longer bridged ` +
`and may not forward traffic — check the device.`
`and may not forward traffic — check the device.`,
{ cause: err }
);
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mikrotik-manager-frontend",
"version": "0.18.0-beta",
"version": "0.18.1-beta",
"private": true,
"type": "module",
"scripts": {
+1 -1
View File
@@ -1 +1 @@
export const APP_VERSION = 'v0.18.0 Beta';
export const APP_VERSION = 'v0.18.1 Beta';