From 0c4f3c69860e8b858fd6ba409186d8a84c0055b9 Mon Sep 17 00:00:00 2001 From: Fulgurance Date: Tue, 2 Jul 2024 21:36:48 +0100 Subject: [PATCH] Added missing function --- ISM/CommandLine.cr | 4 ++++ ISM/Default/CommandLine.cr | 1 + 2 files changed, 5 insertions(+) diff --git a/ISM/CommandLine.cr b/ISM/CommandLine.cr index c5d2fa7a..fa44558f 100644 --- a/ISM/CommandLine.cr +++ b/ISM/CommandLine.cr @@ -635,6 +635,10 @@ module ISM puts help end + def notifyOfGetFileContentError(filePath : String, error = nil) + printErrorNotification(ISM::Default::CommandLine::ErrorGetFileContentText+filePath, error) + end + def printSystemCallErrorNotification limit = ISM::Default::CommandLine::InternalErrorTitle.size diff --git a/ISM/Default/CommandLine.cr b/ISM/Default/CommandLine.cr index 73e74f7b..e3d75138 100644 --- a/ISM/Default/CommandLine.cr +++ b/ISM/Default/CommandLine.cr @@ -59,6 +59,7 @@ module ISM ErrorMakeLinkUnknowTypeText1 = "Failed to make symbolic link from " ErrorMakeLinkUnknowTypeText2 = " to " ErrorMakeLinkUnknowTypeText3 = ". Unknow link type: " + ErrorGetFileContentText = "Failed to get file content from " ErrorRunSystemCommandText1 = "Failed to run " ErrorRunSystemCommandText2 = " in " ErrorRunSystemCommandText3 = " with given environment "