Skip to content

cli tool fails user-info.php #2291

@oupala

Description

@oupala

I'm trying to install FreshRSS 1.13.1 and I'm using cli tools to check if a user exists before trying to create it:

>php cli/user-info.php -h --user myuser
*	myuser	2019-03-22T22:10:11+01:00	5.77 MiB	4 categories	20 feeds	909 reads	1 unreads	2 favourites
PHP Fatal error:  Call to a member function execute() on boolean in /path/to/FreshRSS-1.13.1/app/Models/TagDAO.php on line 190
>echo $?
255

It seems that the user is found, but there is also an error that is outputted and the return code is 255 instead of 0.

The script output would be more easily readable if there was headers outputted. It could be an option to output the headers or not (--headers true or --headers false).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions