Skip to content

Commit

Permalink
[stdlib] Fix error message for JSON KeyNotFound exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
beauby committed Oct 8, 2024
1 parent e93beb3 commit e986cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skiplang/prelude/src/stdlib/serialization/JSON.sk
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private fun indent(write: .String -> void, nspaces: Int): void {

class KeyNotFoundError(key: .String) extends Serialization.SerializationError {
fun getMessage(): .String {
"Key '" + this.key + "'not found";
"Key '" + this.key + "' not found";
}
fun toString(): .String {
`KeyNotFoundError: ${this.getMessage()}`
Expand Down

0 comments on commit e986cd4

Please sign in to comment.