We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e0c43 commit 4e95310Copy full SHA for 4e95310
bin/jsondiff
@@ -32,8 +32,9 @@ def diff_files():
32
doc1 = json.load(args.FILE1)
33
doc2 = json.load(args.FILE2)
34
patch = jsonpatch.make_patch(doc1, doc2)
35
- print(json.dumps(patch.patch, indent=args.indent))
36
-
+ if patch.patch:
+ print(json.dumps(patch.patch, indent=args.indent))
37
+ sys.exit(1)
38
39
if __name__ == "__main__":
40
main()
0 commit comments