Browser Helper Object: Handle errors when micasad isn't running.

This commit is contained in:
Jim Norman 2006-05-24 19:18:20 +00:00
parent 452fabac62
commit b429401790

View File

@ -244,7 +244,15 @@ function promptuser()
} }
catch (err) catch (err)
{ {
res = -803; if (err.toString().indexOf("fcdd") > 0)
{
logMessage("fcdd found");
res = -803;
}
else
{
logMessage("fcdd not found");
}
} }
if (res == 0) if (res == 0)
@ -255,8 +263,11 @@ function promptuser()
break; break;
} }
} }
else if (res == -803)
{
logMessage("CASA Services not available");
return;
}
} catch (err) { } catch (err) {
bIsLogin = 'false'; bIsLogin = 'false';
@ -382,7 +393,10 @@ function promptuser()
} }
catch (err) catch (err)
{ {
alert('CASA services not available');
logMessage(err); logMessage(err);
window.close();
return;
} }
} }
} }