Improve errors reporting
This commit is contained in:
@ -25,7 +25,7 @@ export function CreateNetworkRoute(): React.ReactElement {
|
||||
navigate(`/net/${res.uid}`);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
alert("Failed to create network!");
|
||||
alert(`Failed to create network!\n${e}`);
|
||||
}
|
||||
};
|
||||
|
||||
@ -59,7 +59,7 @@ export function EditNetworkRoute(): React.ReactElement {
|
||||
navigate(NetworkURL(network!));
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
alert("Failed to update network!");
|
||||
alert(`Failed to update network!\n${e}`);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user