mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed incorrect handling of the code smell for the reject API call
This commit is contained in:
@@ -265,7 +265,7 @@ define([
|
||||
}).then((response)=> {
|
||||
resolve(response.data.data);
|
||||
}).catch((err)=>{
|
||||
reject(new Error(err));
|
||||
reject(err instanceof Error ? err : Error(gettext('Something went wrong')));
|
||||
});
|
||||
});
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user