Skip to content

Commit 869b48f

Browse files
logging the error
1 parent f8a992c commit 869b48f

File tree

1 file changed

+3
-2
lines changed
  • zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook

1 file changed

+3
-2
lines changed

zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public String exportNote(String noteId) throws IOException, IllegalArgumentExcep
167167
Gson gson = gsonBuilder.create();
168168
Note note = getNote(noteId);
169169
if (note == null) {
170-
throw new IllegalArgumentException(noteId + "not found");
170+
throw new IllegalArgumentException(noteId + " not found");
171171
}
172172
return gson.toJson(note);
173173
}
@@ -200,7 +200,8 @@ public Note importNote(String sourceJson, String noteName) throws IOException {
200200

201201
newNote.persist();
202202
} catch (IOException e) {
203-
throw new IOException(e);
203+
logger.error(e.toString(), e);
204+
throw e;
204205
}
205206

206207
return newNote;

0 commit comments

Comments
 (0)