better error reporting on failed downlowd
This commit is contained in:
parent
3d6e2ff514
commit
527ec49d5e
@ -101,6 +101,7 @@ function get_assets {
|
|||||||
get_marketdata https://www.investing.com/indices/msci-eafe MSCI-EAFE-INDEX
|
get_marketdata https://www.investing.com/indices/msci-eafe MSCI-EAFE-INDEX
|
||||||
get_marketdata https://www.investing.com/indices/10-year-treasury-yield 10-YEAR-TREASURY-YIELD-INDEX
|
get_marketdata https://www.investing.com/indices/10-year-treasury-yield 10-YEAR-TREASURY-YIELD-INDEX
|
||||||
get_marketdata https://www.boerse.de/rohstoffe/WTI-Rohoelpreis/XD0015948363 OIL-INVERTED-INDEX
|
get_marketdata https://www.boerse.de/rohstoffe/WTI-Rohoelpreis/XD0015948363 OIL-INVERTED-INDEX
|
||||||
|
get_marketdata https://www.boerse.de/rohstoffe/Goldpreis/XC0009655157 GOLD-INDEX
|
||||||
#get_marketdata https://www.boerse.de/aktien/Nvidia-Aktie/US67066G1040 NVIDIA-INDEX
|
#get_marketdata https://www.boerse.de/aktien/Nvidia-Aktie/US67066G1040 NVIDIA-INDEX
|
||||||
#get_marketdata https://www.boerse.de/aktien/Tesla-Aktie/US88160R1014 TESLA-INDEX
|
#get_marketdata https://www.boerse.de/aktien/Tesla-Aktie/US88160R1014 TESLA-INDEX
|
||||||
#get_marketdata https://www.boerse.de/aktien/Apple-Aktie/US0378331005 APPLE-INDEX
|
#get_marketdata https://www.boerse.de/aktien/Apple-Aktie/US0378331005 APPLE-INDEX
|
||||||
|
@ -24,7 +24,16 @@ function get_marketdata {
|
|||||||
mv MARKET_DATA_CMD_OUT-${f_name}.tmp MARKET_DATA_CMD_OUT-${f_name}
|
mv MARKET_DATA_CMD_OUT-${f_name}.tmp MARKET_DATA_CMD_OUT-${f_name}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
g_echo_warn "MARKET_DATA_CMD_OUT-${f_name}.tmp has wrong Syntax. - Not updating ${f_name} Index. Output: \"$(tail -n 10 MARKET_DATA_CMD_OUT-${f_name}.tmp)\"; Error: \"$(tail -n 10 MARKET_DATA_CMD_OUT-${f_name}.tmp.err)\""
|
g_echo_warn "MARKET_DATA_CMD_OUT-${f_name}.tmp has wrong Syntax. - Not updating ${f_name} Index.
|
||||||
|
|
||||||
|
CMD:
|
||||||
|
$(tail -n 10 MARKET_DATA_CMD);
|
||||||
|
|
||||||
|
Output:
|
||||||
|
$(tail -n 10 MARKET_DATA_CMD_OUT-${f_name}.tmp | cat -t);
|
||||||
|
|
||||||
|
Error:
|
||||||
|
$(tail -n 10 MARKET_DATA_CMD_OUT-${f_name}.tmp.err | cat -t)"
|
||||||
fi
|
fi
|
||||||
if ! [ -e "MARKET_DATA_CMD_OUT-${f_name}" ]
|
if ! [ -e "MARKET_DATA_CMD_OUT-${f_name}" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user