Skip to content

Commit 40b505d

Browse files
committed
Fix the order of invalid map errors
1 parent 80f4cf0 commit 40b505d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CodeModel/src/main/java/org/openzen/zenscript/codemodel/compilation/CompileErrors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public static CompileError genericMapConstructedEmpty() {
203203
}
204204

205205
public static CompileError invalidMapType(TypeID type) {
206-
return new CompileError(CompileExceptionCode.INVALID_TYPE, "Cannot construct map from type " + type);
206+
return new CompileError(CompileExceptionCode.INVALID_TYPE, "Cannot construct type " + type + " from map");
207207
}
208208

209209
public static CompileError invalidMapKey() {

0 commit comments

Comments
 (0)