[haiku-commits] Re: r35506 - in haiku/trunk: headers/os/locale headers/private/locale src/apps/aboutsystem src/kits/locale src/tests/kits/locale

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 17 Feb 2010 16:56:38 +0100

2010/2/17  <pulkomandy@xxxxxxxxx>:
> -       timeFormatter.Format(123456, &str);
> +       if (timeFormatter.Format(123456, &str) != B_OK) {
> +               std::cout << "Conversion error\n";
> +               return -1;
> +       }

Exit error codes are usually positives. We better use 1 instead of -1.

Bye,
Jérôme

Other related posts: