Skip to content

Commit d022e9d

Browse files
committed
Propogate error to SW_ERROR rather than std::cerr where it won't be seen, expecially on Windows.
1 parent 138b251 commit d022e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Studio/ShapeWorksMONAI/MonaiLabelJob.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void MonaiLabelJob::initializeClient() {
9191
models_available_[model_type_] = {model_name_};
9292
Q_EMIT triggerClientInitialized();
9393
} catch (std::exception &e) {
94-
std::cerr << "Error importing MONAILabel or initializing MONAILabelClient: " << e.what() << std::endl;
94+
SW_ERROR("Error importing MONAILabel or initializing MONAILabelClient: {}", e.what());
9595
return;
9696
}
9797
}

0 commit comments

Comments
 (0)