Skip to content

Commit 94494b0

Browse files
committed
issue only one multiline warning
1 parent d8efcfc commit 94494b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Common/Node/jsonPatcher.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export class JsonPatcher implements patch.IPatcher {
2121
var patchError = jsonPatch.validate(this.patches, json);
2222

2323
if(patchError){
24-
tl.warning("Invalid patch at index `" + String(patchError.index) + "`");
25-
tl.warning(patch.SlickPatchParser.stringify(patchError.operation));
26-
tl.warning(patchError.name);
27-
tl.warning(patchError.message);
24+
tl.warning("Invalid patch at index `" + String(patchError.index) + "`" + '\n' +
25+
patch.SlickPatchParser.stringify(patchError.operation)+ '\n' +
26+
patchError.name+ '\n' +
27+
patchError.message);
2828
throw new Error("Invalid patch at index `" + String(patchError.index) + "`: " + patchError.name
2929
+ ", " + patchError.message);
3030
}

0 commit comments

Comments
 (0)