mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Update error message to include specific reason for failure in Export.jsx
This commit is contained in:
parent
b3a171b2f8
commit
3e5e1bacce
@ -1,5 +1,5 @@
|
||||
import Heading from '../components/Heading';
|
||||
import { useState, useEffect } from 'preact/hooks';
|
||||
import { useState } from 'preact/hooks';
|
||||
import useSWR from 'swr';
|
||||
import Button from '../components/Button';
|
||||
import axios from 'axios';
|
||||
@ -53,7 +53,7 @@ export default function Export() {
|
||||
setMessage({ text: 'Successfully started export. View the file in the /exports folder.', error: false });
|
||||
})
|
||||
.catch((error) => {
|
||||
setMessage({ text: 'Failed to start export.', error: true });
|
||||
setMessage({ text: 'Failed to start export: '+error.response.data.message, error: true });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user