Solved displaying error and not opening generated file after success

I tried it a little and noticed it generated the views but the status_message said failure and didn't open newly generated file.

I had not tried it with all generate commands before and haven't tried after modification.

Hope it is useful.
Met