diff options
Diffstat (limited to 'src/BaseDisplay.cc')
-rw-r--r-- | src/BaseDisplay.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/BaseDisplay.cc b/src/BaseDisplay.cc index 41b2c3e..f10180f 100644 --- a/src/BaseDisplay.cc +++ b/src/BaseDisplay.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: BaseDisplay.cc,v 1.24 2002/12/01 13:41:54 rathnor Exp $ | 25 | // $Id: BaseDisplay.cc,v 1.25 2002/12/02 20:02:56 fluxgen Exp $ |
26 | 26 | ||
27 | 27 | ||
28 | 28 | ||
@@ -146,21 +146,20 @@ static int handleXErrors(Display *d, XErrorEvent *e) { | |||
146 | I18n *i18n = I18n::instance(); | 146 | I18n *i18n = I18n::instance(); |
147 | 147 | ||
148 | if (display() == 0) { | 148 | if (display() == 0) { |
149 | fprintf(stderr, | 149 | throw string( |
150 | i18n-> | 150 | i18n-> |
151 | getMessage( | 151 | getMessage( |
152 | FBNLS::BaseDisplaySet, FBNLS::BaseDisplayXConnectFail, | 152 | FBNLS::BaseDisplaySet, FBNLS::BaseDisplayXConnectFail, |
153 | "BaseDisplay::BaseDisplay: connection to X server failed.\n")); | 153 | "BaseDisplay::BaseDisplay: connection to X server failed.")); |
154 | 154 | ||
155 | throw static_cast<int>(2); //throw error 2 | ||
156 | } else if (fcntl(ConnectionNumber(display()), F_SETFD, 1) == -1) { | 155 | } else if (fcntl(ConnectionNumber(display()), F_SETFD, 1) == -1) { |
157 | fprintf(stderr, | 156 | throw string( |
158 | i18n-> | 157 | i18n-> |
159 | getMessage( | 158 | getMessage( |
160 | FBNLS::BaseDisplaySet, FBNLS::BaseDisplayCloseOnExecFail, | 159 | FBNLS::BaseDisplaySet, FBNLS::BaseDisplayCloseOnExecFail, |
161 | "BaseDisplay::BaseDisplay: couldn't mark display connection " | 160 | "BaseDisplay::BaseDisplay: couldn't mark display connection " |
162 | "as close-on-exec\n")); | 161 | "as close-on-exec")); |
163 | throw static_cast<int>(2); //throw error 2 | 162 | |
164 | } | 163 | } |
165 | 164 | ||
166 | 165 | ||