BLUELOVETH 3 lat temu
rodzic
commit
e02429365e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/error.h

+ 2 - 2
src/error.h

@@ -86,9 +86,9 @@ public:
         StrStream ss;
         StrStream ss;
         if(is_re) ss << "Traceback (most recent call last):\n";
         if(is_re) ss << "Traceback (most recent call last):\n";
         while(!st.empty()) { ss << st.top() << '\n'; st.pop(); }
         while(!st.empty()) { ss << st.top() << '\n'; st.pop(); }
-        if (msg.compare("") != 0) ss << type << ": " << msg;
+        if (!msg.empty()) ss << type << ": " << msg;
         else ss << type;
         else ss << type;
         return ss.str();
         return ss.str();
     }
     }
 };
 };
-}
+}