If the code throws an exception,

editor = IDE.openEditor(page, file, true);

will be called.

If the command can't open an editor, a message will be shown in the status line.