kaloyan-raev / hello-storj

Demo app for integrating the libstorj native library in Android
GNU General Public License v3.0
5 stars 3 forks source link

Detailed error messages #31

Closed dri94 closed 6 years ago

dri94 commented 6 years ago

When receiving an error message on upload all that is returned is the filepath (or in some cases, just null). However this does not tell us why it failed. This can be very important for the message shown to the user, and for simply developer debugging in the app. Giving the error message that the JNI received back to the callback will be an extremely useful feature.

kaloyan-raev commented 6 years ago

Error messages are provided for uploads. For example, if you try uploading a file that already exists in the bucket then you will get "Upload failed. File already exists (1013)".

Perhaps, you are hitting some corner case. Could provide exact steps to reproduce?

dri94 commented 6 years ago

It would literally just come through as null. But i get error messages now. Unsure what was happening