mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Merge pull request #2713 from Descent098/fix-error-labels
Fixed link to documentation in filestructure error
This commit is contained in:
@@ -15,6 +15,7 @@ from endpoints.responses import TaskType
|
||||
from endpoints.responses.platform import PlatformSchema
|
||||
from endpoints.responses.rom import SimpleRomSchema
|
||||
from exceptions.fs_exceptions import (
|
||||
FOLDER_STRUCT_MSG,
|
||||
FirmwareNotFoundException,
|
||||
FolderStructureNotMatchException,
|
||||
RomsNotFoundException,
|
||||
@@ -644,7 +645,7 @@ async def scan_platforms(
|
||||
if len(platform_list) == 0:
|
||||
log.warning(
|
||||
f"{hl(emoji.EMOJI_WARNING, color=LIGHTYELLOW)} No platforms found, verify that the folder structure is right and the volume is mounted correctly."
|
||||
"Check https://github.com/rommapp/romm?tab=readme-ov-file#folder-structure for more details."
|
||||
f"{FOLDER_STRUCT_MSG}"
|
||||
)
|
||||
else:
|
||||
log.info(
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from logger.formatter import BLUE
|
||||
from logger.formatter import highlight as hl
|
||||
|
||||
folder_struct_msg = "Check RomM folder structure here: https://github.com/rommapp/romm?tab=readme-ov-file#folder-structure"
|
||||
FOLDER_STRUCT_MSG = "Check RomM folder structure here: https://docs.romm.app/latest/Getting-Started/Folder-Structure/ for more details"
|
||||
|
||||
|
||||
class FolderStructureNotMatchException(Exception):
|
||||
def __init__(self):
|
||||
self.message = f"Platforms not found. {folder_struct_msg}"
|
||||
self.message = f"Platforms not found. {FOLDER_STRUCT_MSG }"
|
||||
super().__init__(self.message)
|
||||
|
||||
def __repr__(self) -> str:
|
||||
@@ -33,7 +33,7 @@ class PlatformAlreadyExistsException(Exception):
|
||||
|
||||
class RomsNotFoundException(Exception):
|
||||
def __init__(self, platform: str):
|
||||
self.message = f"Roms not found for platform {hl(platform, color=BLUE)}. {folder_struct_msg}"
|
||||
self.message = f"Roms not found for platform {hl(platform, color=BLUE)}. {FOLDER_STRUCT_MSG }"
|
||||
super().__init__(self.message)
|
||||
|
||||
def __repr__(self):
|
||||
@@ -51,7 +51,7 @@ class RomAlreadyExistsException(Exception):
|
||||
|
||||
class FirmwareNotFoundException(Exception):
|
||||
def __init__(self, platform: str):
|
||||
self.message = f"Firmware not found for platform {hl(platform, color=BLUE)}. {folder_struct_msg}"
|
||||
self.message = f"Firmware not found for platform {hl(platform, color=BLUE)}. {FOLDER_STRUCT_MSG }"
|
||||
super().__init__(self.message)
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
Reference in New Issue
Block a user