mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
logging the error
This commit is contained in:
parent
f8a992cbc7
commit
869b48f428
1 changed files with 3 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ public class Notebook {
|
|||
Gson gson = gsonBuilder.create();
|
||||
Note note = getNote(noteId);
|
||||
if (note == null) {
|
||||
throw new IllegalArgumentException(noteId + "not found");
|
||||
throw new IllegalArgumentException(noteId + " not found");
|
||||
}
|
||||
return gson.toJson(note);
|
||||
}
|
||||
|
|
@ -200,7 +200,8 @@ public class Notebook {
|
|||
|
||||
newNote.persist();
|
||||
} catch (IOException e) {
|
||||
throw new IOException(e);
|
||||
logger.error(e.toString(), e);
|
||||
throw e;
|
||||
}
|
||||
|
||||
return newNote;
|
||||
|
|
|
|||
Loading…
Reference in a new issue