From f58fecb74def72d3156032ffcd1bacfffbb3dca4 Mon Sep 17 00:00:00 2001 From: Sabuto Date: Wed, 14 Jul 2021 18:34:54 +0100 Subject: [PATCH 1/2] Updated printout of failure messages --- lib/commands/CustomCommand.dart | 2 +- lib/commands/HideSource.dart | 2 +- lib/commands/PauseRecording.dart | 2 +- lib/commands/ResumeRecording.dart | 2 +- lib/commands/ShowSource.dart | 2 +- lib/commands/StartRecording.dart | 2 +- lib/commands/StartStream.dart | 2 +- lib/commands/StopRecording.dart | 2 +- lib/commands/SwitchSceneCommand.dart | 2 +- lib/commands/ToggleAudioCommand.dart | 2 +- lib/commands/ToggleSource.dart | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/commands/CustomCommand.dart b/lib/commands/CustomCommand.dart index 451f5f4..544b768 100644 --- a/lib/commands/CustomCommand.dart +++ b/lib/commands/CustomCommand.dart @@ -42,7 +42,7 @@ class CustomCommand extends BaseCommand { print('Command Sent'); exit(0); } catch (e) { - print('Failed to switch profile - ${e.toString()}'); + print('Failed to send command - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/HideSource.dart b/lib/commands/HideSource.dart index 27abf50..9376f64 100644 --- a/lib/commands/HideSource.dart +++ b/lib/commands/HideSource.dart @@ -37,7 +37,7 @@ class HideSource extends BaseCommand { print('Source Hidden'); exit(0); } catch (e) { - print('Failed to set scene - ${e.toString()}'); + print('Failed to Hide Source - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/PauseRecording.dart b/lib/commands/PauseRecording.dart index 6d10e23..9deca11 100644 --- a/lib/commands/PauseRecording.dart +++ b/lib/commands/PauseRecording.dart @@ -17,7 +17,7 @@ class PauseRecording extends BaseCommand { print('Recording paused'); exit(0); } catch (e) { - print('Failed to switch profile - ${e.toString()}'); + print('Failed to Pause Recording - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/ResumeRecording.dart b/lib/commands/ResumeRecording.dart index dd9956e..1822c8e 100644 --- a/lib/commands/ResumeRecording.dart +++ b/lib/commands/ResumeRecording.dart @@ -17,7 +17,7 @@ class ResumeRecording extends BaseCommand { print('Recording resumed'); exit(0); } catch (e) { - print('Failed to switch profile - ${e.toString()}'); + print('Failed to resume recording - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/ShowSource.dart b/lib/commands/ShowSource.dart index d227582..3e1fb8f 100644 --- a/lib/commands/ShowSource.dart +++ b/lib/commands/ShowSource.dart @@ -37,7 +37,7 @@ class ShowSource extends BaseCommand { print('Source Shown'); exit(0); } catch (e) { - print('Failed to set scene - ${e.toString()}'); + print('Failed to show source - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/StartRecording.dart b/lib/commands/StartRecording.dart index 71f3ea6..07473eb 100644 --- a/lib/commands/StartRecording.dart +++ b/lib/commands/StartRecording.dart @@ -17,7 +17,7 @@ class StartRecording extends BaseCommand { print('Recording started'); exit(0); } catch (e) { - print('Failed to switch profile - ${e.toString()}'); + print('Failed to start recording - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/StartStream.dart b/lib/commands/StartStream.dart index 95d4725..7bcdd3b 100644 --- a/lib/commands/StartStream.dart +++ b/lib/commands/StartStream.dart @@ -17,7 +17,7 @@ class StartStream extends BaseCommand { print('Streaming started'); exit(0); } catch (e) { - print('Failed to switch profile - ${e.toString()}'); + print('Failed to start streaming - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/StopRecording.dart b/lib/commands/StopRecording.dart index d280adc..32f4443 100644 --- a/lib/commands/StopRecording.dart +++ b/lib/commands/StopRecording.dart @@ -17,7 +17,7 @@ class StopRecording extends BaseCommand { print('Recording stopped'); exit(0); } catch (e) { - print('Failed to switch profile - ${e.toString()}'); + print('Failed to stop recording - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/SwitchSceneCommand.dart b/lib/commands/SwitchSceneCommand.dart index 23c47d3..5879e4f 100644 --- a/lib/commands/SwitchSceneCommand.dart +++ b/lib/commands/SwitchSceneCommand.dart @@ -25,7 +25,7 @@ class SwitchScene extends BaseCommand { print('Scene Changed'); exit(0); } catch (e) { - print('Failed to set scene - ${e.toString()}'); + print('Failed to change scene - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/ToggleAudioCommand.dart b/lib/commands/ToggleAudioCommand.dart index 84f34d8..1d07b95 100644 --- a/lib/commands/ToggleAudioCommand.dart +++ b/lib/commands/ToggleAudioCommand.dart @@ -26,7 +26,7 @@ class ToggleAudio extends BaseCommand { print('Source Audio Toggled'); exit(0); } catch (e) { - print('Failed to set scene - ${e.toString()}'); + print('Failed to toggle audio - ${e.toString()}'); exit(2); } } diff --git a/lib/commands/ToggleSource.dart b/lib/commands/ToggleSource.dart index 35b3cbd..b975163 100644 --- a/lib/commands/ToggleSource.dart +++ b/lib/commands/ToggleSource.dart @@ -52,7 +52,7 @@ class ToggleSource extends BaseCommand { print('Source visibility changed'); exit(0); } catch (e) { - print('Failed to set scene - ${e.toString()}'); + print('Failed to toggle source - ${e.toString()}'); exit(2); } } From 57ec57670faeb23dc771644075ffb0a52f1bb65d Mon Sep 17 00:00:00 2001 From: Sabuto Date: Wed, 14 Jul 2021 18:51:16 +0100 Subject: [PATCH 2/2] Updated changelog format --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index effe43c..9c0d662 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ -## 1.0.0 +## [1.0.0] - 2021-07-14 - Initial version.