Commit 5b02dabb authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Geant4: interestingly a missing/wrong physics lists is just a warning...?

parent f59debb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ namespace allpix {
    public:
        G4bool Notify(const char*, const char* code, G4ExceptionSeverity severity, const char* description) override {
            std::string message = "Caught Geant4 exception " + std::string(code) + ": " + std::string(description);
            if(severity == G4ExceptionSeverity::JustWarning) {
            if(severity == G4ExceptionSeverity::JustWarning && std::string(code) != "pl0003") {
                LOG(WARNING) << message;
            } else if(severity == G4ExceptionSeverity::EventMustBeAborted) {
                throw AbortEventException(message);