Skip to content

Commit 913c7d2

Browse files
HT154holzensp
andcommitted
Apply suggestions from code review
Co-authored-by: Philip K.F. Hölzenspies <[email protected]>
1 parent 28c6382 commit 913c7d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkl-core/src/main/java/org/pkl/core/util/yaml/ParseException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

pkl-core/src/main/resources/org/pkl/core/errorMessages.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,9 @@ jsonParseError=\
762762
Error parsing JSON document.
763763

764764
jsonParseErrorDynamicPropertyDefault=\
765-
Cannot parse object with key `default` into ` Dynamic`.\
765+
Cannot parse an object with key `"default"` into a `Dynamic`.\
766766
\n\
767-
Try parsing into `Mapping` instead with `useMapping = true` in `pkl.json#Parser`.
767+
Try parsing into a `Mapping` instead, by setting `useMapping = true` in the `pkl.json#Parser`.
768768

769769
yamlParseError=\
770770
Error parsing YAML document.
@@ -775,9 +775,9 @@ Error parsing YAML document: The number of aliases for collection nodes exceeds
775775
To increase the allowed maximum, set `YamlRenderer.maxCollectionAliases`.
776776

777777
yamlParseErrorDynamicPropertyDefault=\
778-
Cannot parse object with key `default` into ` Dynamic`.\
778+
Cannot parse an object with key `default` into a `Dynamic`.\
779779
\n\
780-
Try parsing into `Mapping` instead with `useMapping = true` in `pkl.yaml#Parser`.
780+
Try parsing into a `Mapping` instead, by setting `useMapping = true` in the `pkl.yaml#Parser`.
781781

782782
evaluationTimedOut=\
783783
Evaluation timed out after {0,number,#.##} second(s).

0 commit comments

Comments
 (0)