Skip to content

Commit 9ee33e3

Browse files
HT154holzensp
andcommitted
Apply suggestions from code review
Co-authored-by: Philip K.F. Hölzenspies <holzensp@gmail.com>
1 parent 792cef3 commit 9ee33e3

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
@@ -797,9 +797,9 @@ jsonParseError=\
797797
Error parsing JSON document.
798798

799799
jsonParseErrorDynamicPropertyDefault=\
800-
Cannot parse object with key `default` into ` Dynamic`.\
800+
Cannot parse an object with key `"default"` into a `Dynamic`.\
801801
\n\
802-
Try parsing into `Mapping` instead with `useMapping = true` in `pkl.json#Parser`.
802+
Try parsing into a `Mapping` instead, by setting `useMapping = true` in the `pkl.json#Parser`.
803803

804804
yamlParseError=\
805805
Error parsing YAML document.
@@ -810,9 +810,9 @@ Error parsing YAML document: The number of aliases for collection nodes exceeds
810810
To increase the allowed maximum, set `YamlRenderer.maxCollectionAliases`.
811811

812812
yamlParseErrorDynamicPropertyDefault=\
813-
Cannot parse object with key `default` into ` Dynamic`.\
813+
Cannot parse an object with key `default` into a `Dynamic`.\
814814
\n\
815-
Try parsing into `Mapping` instead with `useMapping = true` in `pkl.yaml#Parser`.
815+
Try parsing into a `Mapping` instead, by setting `useMapping = true` in the `pkl.yaml#Parser`.
816816

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

0 commit comments

Comments
 (0)