mirror of
https://github.com/apple/pkl.git
synced 2026-07-04 20:21:42 +02:00
Fix wrong error key in ReflectNodes (#1694)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
|
* Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -32,7 +32,10 @@ public final class ReflectNodes {
|
|||||||
@TruffleBoundary
|
@TruffleBoundary
|
||||||
protected VmTyped eval(VmTyped self, VmTyped module) {
|
protected VmTyped eval(VmTyped self, VmTyped module) {
|
||||||
if (!module.isModuleObject()) {
|
if (!module.isModuleObject()) {
|
||||||
throw exceptionBuilder().evalError("expectedModule").withLocation(getArg1Node()).build();
|
throw exceptionBuilder()
|
||||||
|
.evalError("expectedModuleAsArgument")
|
||||||
|
.withLocation(getArg1Node())
|
||||||
|
.build();
|
||||||
}
|
}
|
||||||
return module.getModuleMirror();
|
return module.getModuleMirror();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user