diff --git a/src/olympic/studio/applib/src/newmenu.cpp b/src/olympic/studio/applib/src/newmenu.cpp index 91480554..b3ee6751 100644 --- a/src/olympic/studio/applib/src/newmenu.cpp +++ b/src/olympic/studio/applib/src/newmenu.cpp @@ -116,11 +116,12 @@ void NewMenu::drawLastPageButtons(studio::StudioContext &sctx) noexcept { void NewMenu::finish(studio::StudioContext &sctx) noexcept { if (m_itemName.len() == 0) { + oxLogError(OxError(1, "New file error: no file name")); return; } auto const&typeMaker = *m_types[static_cast(m_selectedType)]; if (sctx.project->exists(typeMaker.itemPath(m_itemName))) { - oxLogError(OxError(1, "New file error: File already exists")); + oxLogError(OxError(1, "New file error: file already exists")); return; } auto const [path, err] = typeMaker.write(sctx, m_itemName);