From 733d27ed9e34240a4136489357729779dfe15eb5 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 25 Apr 2020 16:16:52 -0700 Subject: [PATCH] Add special error text for the -1 launch error code --- static/js/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index 9ae332b..0abb77a 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -729,8 +729,16 @@ function startGame(host, appID) { $xml = $($.parseXML(launchResult.toString())); $root = $xml.find('root'); - if ($root.attr('status_code') != 200) { - snackbarLog('Error ' + $root.attr('status_code') + ': ' + $root.attr('status_message')); + var status_code = $root.attr('status_code') + if (status_code != 200) { + var status_message = $root.attr('status_message') + if (status_code == 4294967295 && status_message == 'Invalid') { + // Special case handling an audio capture error which GFE doesn't + // provide any useful status message for. + status_code = 418; + status_message = 'Missing audio capture device. Reinstall GeForce Experience.'; + } + snackbarLog('Error ' + status_code + ': ' + status_message); showApps(host); return; }