File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ export class JsonPatcher implements patch.IPatcher {
21
21
var patchError = jsonPatch . validate ( this . patches , json ) ;
22
22
23
23
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 ) ;
28
28
throw new Error ( "Invalid patch at index `" + String ( patchError . index ) + "`: " + patchError . name
29
29
+ ", " + patchError . message ) ;
30
30
}
You can’t perform that action at this time.
0 commit comments