mirror of
https://github.com/smittix/intercept.git
synced 2026-07-27 18:18:10 -07:00
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:
+4
-2
@@ -862,11 +862,13 @@ def start_gsm_scan():
|
||||
|
||||
# Check for grgsm_scanner
|
||||
if not get_grgsm_scanner_path():
|
||||
gsm_running = False
|
||||
return jsonify({
|
||||
'status': 'error',
|
||||
'message': 'grgsm_scanner not found. Install gr-gsm package.',
|
||||
'install_hint': 'See setup.sh or install gr-gsm from https://github.com/ptrkrysik/gr-gsm'
|
||||
}), 500
|
||||
'install_hint': 'See setup.sh or install gr-gsm from https://github.com/ptrkrysik/gr-gsm',
|
||||
'grgsm_available': False
|
||||
}), 503
|
||||
|
||||
# Get configuration from request
|
||||
data = request.get_json() or {}
|
||||
|
||||
Reference in New Issue
Block a user