rojo-rbx / remodel

Scriptable Roblox multitool: Manipulate instances, model files, places, and assets on Roblox.com
MIT License
169 stars 38 forks source link

made read_place_asset error more clear #82

Closed Boegie19 closed 2 years ago

Boegie19 commented 2 years ago

Currently read_place_asset if the api returns an error will only give you the roblox code. But for example code 0 has multiple error messages connected with it. Example: { "errors": [ { "code": 0, "message": "User is not authorized to access Asset." } ] } and { "errors": [ { "code": 0, "message": "Request asset was not found" } ] } so In this pool request I decided to give full response form the endpoint and not only the code.

Boegie19 commented 2 years ago

We could maybe make a function that detects when it comes back with html if it does we just give html responce back as the error message this would also be useful for rojo