add error message for authenticator not found

This commit is contained in:
2024-09-09 18:42:41 +02:00
parent 7edfe2dfff
commit c0704a604b

View File

@@ -23,6 +23,9 @@ pub fn main() !void {
// do nothing, error message is already written (because the message contains the name of the unknown parameter) // do nothing, error message is already written (because the message contains the name of the unknown parameter)
}, },
ArgumentError.InvalidOtpAuthUrl => {}, ArgumentError.InvalidOtpAuthUrl => {},
ArgumentError.AuthenticatorNotFound => {
try std.io.getStdErr().writer().print("authenticator not found\n", .{});
},
else => |leftover_err| { else => |leftover_err| {
try std.io.getStdErr().writer().print("{?}\n", .{leftover_err}); try std.io.getStdErr().writer().print("{?}\n", .{leftover_err});
}, },