1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-08-25 06:31:43 +02:00

Better error messages

This commit is contained in:
Anthony Scemama 2021-05-06 19:56:42 +02:00
parent 7302f02b9c
commit 87bb6fcb6e

View File

@ -264,7 +264,7 @@ return '\n'.join(result)
return "Unknown failure";
break;
case TREXIO_SUCCESS:
return ;
return "Success";
break;
case TREXIO_INVALID_ARG_1:
return "Invalid argument 1";
@ -300,7 +300,34 @@ return '\n'.join(result)
return "Element absent";
break;
case TREXIO_INVALID_NUM:
return "Invalid exit code";
return "Invalid dimensions";
break;
case TREXIO_NUM_ALREADY_EXISTS:
return "Variable already exists";
break;
case TREXIO_OPEN_ERROR:
return "Error opening file";
break;
case TREXIO_LOCK_ERROR:
return "Error locking file";
break;
case TREXIO_UNLOCK_ERROR:
return "Error unlocking file";
break;
case TREXIO_FILE_ERROR:
return "Invalid file handle";
break;
case TREXIO_GROUP_READ_ERROR:
return "Error reading group";
break;
case TREXIO_GROUP_WRITE_ERROR:
return "Error writing group";
break;
case TREXIO_ELEM_READ_ERROR:
return "Error reading element";
break;
case TREXIO_ELEM_WRITE_ERROR:
return "Error writing element";
break;
#+end_example