diff --git a/src/console/targets/targets.v b/src/console/targets/targets.v index bf2051f..b527896 100644 --- a/src/console/targets/targets.v +++ b/src/console/targets/targets.v @@ -211,8 +211,7 @@ pub fn cmd() cli.Command { arch := cmd.flags.get_string('arch')! if arch == '' { - println('When scheduling the build remotely, you have to specify an architecture.') - exit(1) + return error('When scheduling the build remotely, you have to specify an architecture.') } c := client.new(conf.address, conf.api_key)