throws string instead of number
This commit is contained in:
parent
3633489dbf
commit
12488d4f56
1 changed files with 7 additions and 8 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: BaseDisplay.cc,v 1.24 2002/12/01 13:41:54 rathnor Exp $
|
// $Id: BaseDisplay.cc,v 1.25 2002/12/02 20:02:56 fluxgen Exp $
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -146,21 +146,20 @@ static int handleXErrors(Display *d, XErrorEvent *e) {
|
||||||
I18n *i18n = I18n::instance();
|
I18n *i18n = I18n::instance();
|
||||||
|
|
||||||
if (display() == 0) {
|
if (display() == 0) {
|
||||||
fprintf(stderr,
|
throw string(
|
||||||
i18n->
|
i18n->
|
||||||
getMessage(
|
getMessage(
|
||||||
FBNLS::BaseDisplaySet, FBNLS::BaseDisplayXConnectFail,
|
FBNLS::BaseDisplaySet, FBNLS::BaseDisplayXConnectFail,
|
||||||
"BaseDisplay::BaseDisplay: connection to X server failed.\n"));
|
"BaseDisplay::BaseDisplay: connection to X server failed."));
|
||||||
|
|
||||||
throw static_cast<int>(2); //throw error 2
|
|
||||||
} else if (fcntl(ConnectionNumber(display()), F_SETFD, 1) == -1) {
|
} else if (fcntl(ConnectionNumber(display()), F_SETFD, 1) == -1) {
|
||||||
fprintf(stderr,
|
throw string(
|
||||||
i18n->
|
i18n->
|
||||||
getMessage(
|
getMessage(
|
||||||
FBNLS::BaseDisplaySet, FBNLS::BaseDisplayCloseOnExecFail,
|
FBNLS::BaseDisplaySet, FBNLS::BaseDisplayCloseOnExecFail,
|
||||||
"BaseDisplay::BaseDisplay: couldn't mark display connection "
|
"BaseDisplay::BaseDisplay: couldn't mark display connection "
|
||||||
"as close-on-exec\n"));
|
"as close-on-exec"));
|
||||||
throw static_cast<int>(2); //throw error 2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue