mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-09 20:49:29 +00:00
refactor: update AuthenticatedUser model to require id and remove password, enhance server URI handling in AddNewServer widget
This commit is contained in:
parent
eda45efbce
commit
fa815ae206
10 changed files with 297 additions and 72 deletions
|
|
@ -7,14 +7,18 @@ final _logger = Logger('ErrorResponse');
|
|||
class ErrorResponseHandler {
|
||||
String? name;
|
||||
http.Response _response;
|
||||
bool logRawResponse;
|
||||
|
||||
ErrorResponseHandler({
|
||||
this.name,
|
||||
http.Response? response,
|
||||
this.logRawResponse = false,
|
||||
}) : _response = response ?? http.Response('', 418);
|
||||
|
||||
void storeError(http.Response response, [Object? error]) {
|
||||
_logger.fine('for $name got response: ${response.obfuscate()}');
|
||||
if (logRawResponse) {
|
||||
_logger.fine('for $name got response: ${response.obfuscate()}');
|
||||
}
|
||||
_response = response;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue