Giocoso Error Messages

Errors when creating or refreshing a database:

1) Creating a database where --dbname parameter specifies a name that would conflict with a filename already found to be present in the .local/share/giocoso folder. If, for example, a file called main.db exists in that folder, and you say --createdb=main, then this warning will appear, as asking to create a database named 'main' implies the creation of a file called 'main.db', which already exists and which Giocoso will not over-write:

 

2) If you don't specify --musicdir when using --createdb, Giocoso has no idea where to search for music files:

 

3) If you don't specify --musicdir when using --refreshdb, Giocoso also has no idea where to search for music files:

 

4) If you ask to refresh a database that doesn't exist, obviously Giocoso cannot carry out the instruction. This is a case where --refreshdb has been specified, --musicdir has also been specified but the parameter value for --dbname mentions a database for which a corresponding file in .local/share/giocoso doesn't exist. That is, if --dbname=main, Giocoso needs to find a file called .local/share/giocoso/main.db. Failure to find a file of that name in that location triggers this warning: