From 52902b80ed9fd00208aaea6898e92f74a5a01d5d 2014-04-22 00:32:58 From: Jessica B. Hamrick Date: 2014-04-22 00:32:58 Subject: [PATCH] Distinguish errors during read/write --- diff --git a/IPython/nbformat/current.py b/IPython/nbformat/current.py index cc098ca..432704f 100644 --- a/IPython/nbformat/current.py +++ b/IPython/nbformat/current.py @@ -89,7 +89,7 @@ def reads_json(nbjson, **kwargs): num_errors = validate(nb_current) if num_errors > 0: logger.error( - "Notebook JSON is invalid (%d errors detected)", + "Notebook JSON is invalid (%d errors detected during read)", num_errors) return nb_current @@ -102,7 +102,7 @@ def writes_json(nb, **kwargs): num_errors = validate(nb) if num_errors > 0: logger.error( - "Notebook JSON is invalid (%d errors detected)", + "Notebook JSON is invalid (%d errors detected during write)", num_errors) nbjson = versions[current_nbformat].writes_json(nb, **kwargs) return nbjson