diff --git a/bin/csv-import.php b/bin/csv-import.php index 0d0d426..b543f26 100755 --- a/bin/csv-import.php +++ b/bin/csv-import.php @@ -63,9 +63,10 @@ if (FANCY_PROGRESS) { $bar->progress(); } else { - cli_write('.'); + fwrite(STDERR, '.'); // Was: cli_write('.'); } }); +fwrite(STDERR, "\n"); if (FANCY_PROGRESS) { $bar->end(); } diff --git a/db/User.php b/db/User.php index b51e67b..fa73fea 100644 --- a/db/User.php +++ b/db/User.php @@ -166,8 +166,8 @@ protected static function validateOucu($oucu, $row) { if (!preg_match(self::OUCU_REGEX, $oucu)) { self::$warnings[] = [ 'row' => $row, 'msg' => 'Unexpected OUCU', 'oucu' => $oucu ]; - echo 'W'; - //throw new Exception('Unexpected OUCU format: ' . $oucu); + fwrite(STDERR, 'W'); // Was: echo 'W'; + // Was: throw new Exception('Unexpected OUCU format: ' . $oucu); } return $oucu; }