fix: console error on upnp errors #774
Massimo Melina committed
Oct 15, 2024 at 18:13 UTC
00f977f42f941fae5bb64f4c752a516d689fef34
2 files changed
+3
-3
admin/src/InternetPage.ts
+2
-2
@@ -414,10 +414,10 @@ export default function InternetPage() {
414
if (msg) toast(msg, 'success')
415
setCheckResult(undefined) // things have changed, invalidate check result
416
}
417
- catch(e) {
417
+ catch(e: any) {
418
if (errMsg) {
419
const low = external && Math.min(external, data!.internalPort!) < 1024
420
- const msg = errMsg + (low ? ". Some routers refuse to work with ports under 1024." : '')
420
+ const msg = errMsg + prefix(': ', e?.message) + (low ? ". Some routers refuse to work with ports under 1024." : '')
421
await alertDialog(msg, 'error')
422
}
423
throw e
package.json
+1
-1
@@ -87,7 +87,7 @@
87
"limiter": "^2.1.0",
88
"lodash": "^4.17.21",
89
"minimist": "^1.2.6",
90
- "nat-upnp-rejetto": "^2.0.2",
90
+ "nat-upnp-rejetto": "^2.1.0",
91
"open": "^8.4.0",
92
"qr-creator": "^1.0.0",
93
"picomatch": "^3.0.1",