Skip to content

Commit

Permalink
fix: Update error messages
Browse files Browse the repository at this point in the history
Updated printout of failure messages
  • Loading branch information
sabuto committed Jul 14, 2021
2 parents 4e6400e + 57ec576 commit d126b56
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,3 +1,3 @@
## 1.0.0
## [1.0.0] - 2021-07-14

- Initial version.
2 changes: 1 addition & 1 deletion lib/commands/CustomCommand.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/HideSource.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/PauseRecording.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/ResumeRecording.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/ShowSource.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/StartRecording.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/StartStream.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/StopRecording.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/SwitchSceneCommand.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/ToggleAudioCommand.dart
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/ToggleSource.dart
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit d126b56

Please sign in to comment.