Skip to content

Commit ec5aa7b

Browse files
fix: don't include newlines in FloatField error msg
1 parent 7da247b commit ec5aa7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Fields/FloatField.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ class FloatField extends RESTAPI\Core\Field {
144144

145145
# Otherwise, the internal value cannot be represented by this Field. Throw an error.
146146
throw new RESTAPI\Responses\ServerError(
147-
message: "Cannot parse FloatField '$this->name' from internal because its internal value is not
148-
a numeric value. Consider changing this field to a StringField.",
147+
message: "Cannot parse FloatField '$this->name' from internal because its internal value is not ".
148+
"a numeric value. Consider changing this field to a StringField.",
149149
response_id: 'FLOAT_FIELD_WITH_NON_FLOAT_INTERNAL_VALUE',
150150
);
151151
}

0 commit comments

Comments
 (0)