Skip to content

Commit 2264b41

Browse files
committed
fixed err msg constant name
1 parent f714188 commit 2264b41

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/modules/CodecsModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Object encode(Object self, String encoding, String errors,
537537

538538
@Fallback
539539
Object encode(Object str, @SuppressWarnings("unused") Object encoding, @SuppressWarnings("unused") Object errors) {
540-
throw raise(TypeError, ErrorMessages.CANT_CONVERT_TO_STR_EXPLICITELY, str);
540+
throw raise(TypeError, ErrorMessages.CANT_CONVERT_TO_STR_IMPLICITLY, str);
541541
}
542542
}
543543

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
@@ -174,7 +174,7 @@ public abstract class ErrorMessages {
174174
public static final String CANNOT_USE_FD_AND_FOLLOW_SYMLINKS_TOGETHER = "%s: cannot use fd and follow_symlinks together";
175175
public static final String CANT_CONCAT_P_TO_S = "can't concat %p to %s";
176176
public static final String CANT_CONVERT_TO_FLOAT = "can't convert %s to float";
177-
public static final String CANT_CONVERT_TO_STR_EXPLICITELY = "Can't convert '%p' object to str implicitly";
177+
public static final String CANT_CONVERT_TO_STR_IMPLICITLY = "Can't convert '%p' object to str implicitly";
178178
public static final String CANT_COMPARE = "Can't compare %p and %p";
179179
public static final String CANT_DELETE = "can't delete '%s'";
180180
public static final String CAN_T_DELETE_NUMERIC_CHAR_ATTRIBUTE = "can't delete numeric/char attribute";

0 commit comments

Comments
 (0)