Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2012-2020 Oak Ridge National Laboratory.
* Copyright (c) 2012-2024 Oak Ridge National Laboratory.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -211,6 +211,9 @@ public <T> T loadClass(final Class<T> type, final String class_name, final Strin
public static String getExceptionMessage(final PyException ex)
{
final StringBuilder buf = new StringBuilder();
if (ex.getLocalizedMessage() != null)
buf.append(" ").append(ex.getLocalizedMessage());

if (ex.value instanceof PyString)
buf.append(" ").append(ex.value.asString());
else if (ex.getCause() != null)
Expand Down