Improve GSM scan error handling when gr-gsm not installed

- Return 503 instead of 500 when grgsm_scanner not found
- Show clearer error message in UI when gr-gsm unavailable
- Update status display to show "Not Available" state

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-16 11:21:57 +00:00
parent 23a79a7ac5
commit c044ecfba2
2 changed files with 16 additions and 3 deletions

View File

@@ -798,7 +798,18 @@ async function ismsStartGsmScan() {
ismsNotify('ISMS', `GSM scan started on ${band}`);
} else {
ismsNotify('ISMS Error', data.message || 'Failed to start GSM scan');
// Update status display with error
const statusText = document.getElementById('ismsGsmStatusText');
if (statusText) {
statusText.textContent = 'Not Available';
statusText.style.color = 'var(--accent-red)';
}
if (data.grgsm_available === false) {
ismsNotify('ISMS', 'gr-gsm not installed. GSM scanning requires grgsm_scanner.');
} else {
ismsNotify('ISMS Error', data.message || 'Failed to start GSM scan');
}
}
} catch (e) {
ismsNotify('ISMS Error', 'Failed to start GSM scan: ' + e.message);