Skip to content

Commit 59e0243

Browse files
committed
fixed err msg
1 parent 8c05636 commit 59e0243

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/TypeNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ private static PythonAbstractClass[] mergeMROs(MROMergeState[] toMerge, List<Pyt
10291029
while (it.hasNext()) {
10301030
bases.append(", ").append(GetNameNode.doSlowPath(it.next()));
10311031
}
1032-
throw PRaiseNode.getUncached().raise(TypeError, ErrorMessages.CANNOT_GET_CONSISTEMT_METHOD_RESOLUTION, bases);
1032+
throw PRaiseNode.getUncached().raise(TypeError, ErrorMessages.CANNOT_GET_CONSISTEMT_METHOD_RESOLUTION, bases.toString());
10331033
}
10341034

10351035
return mro.toArray(new PythonAbstractClass[mro.size()]);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/ErrorMessages.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public abstract class ErrorMessages {
120120
public static final String CANNOT_CREATE_WEAK_REFERENCE_TO = "cannot create weak reference to '%p' object";
121121
public static final String CANNOT_DELETE_ATTRIBUTE = "can't delete %s.%s";
122122
public static final String CANNOT_GET_SHAPE_OF_NATIVE_CLS = "cannot get shape of native class";
123-
public static final String CANNOT_GET_CONSISTEMT_METHOD_RESOLUTION = "Cannot create a consistent method resolution order (MRO) for bases %p, %p";
123+
public static final String CANNOT_GET_CONSISTEMT_METHOD_RESOLUTION = "Cannot create a consistent method resolution\norder (MRO) for bases %s";
124124
public static final String CANNOT_HANDLE_ZIP_FILE = "cannot handle Zip file: '%s'";
125125
public static final String CANNOT_IMPORT_NAME = "cannot import name '%s'";
126126
public static final String CANNOT_INITIALIZE_WITH = "cannot initialize %s with %s%s";

0 commit comments

Comments
 (0)