瀏覽代碼

Added more verbose OpenGL failure messages

naelstrof 7 年之前
父節點
當前提交
09787b38a2
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/slop.cpp

+ 3
- 0
src/slop.cpp 查看文件

@@ -79,6 +79,9 @@ slop::SlopSelection slop::SlopSelect( slop::SlopOptions* options, bool* cancelle
79 79
         try {
80 80
             window = new SlopWindow();
81 81
             success = true;
82
+        } catch( std::exception* e ) {
83
+            errorstring += std::string(e->what()) + "\n";
84
+            success = false;
82 85
         } catch (...) {
83 86
             success = false;
84 87
         }