Commit c62e0bdf authored by Claes Sjofors's avatar Claes Sjofors

Wb backup, errormessage when bck-file couldn't be opened added

parent d1707490
...@@ -80,7 +80,7 @@ dstalrcon <destination object is already connected to other object> /error ...@@ -80,7 +80,7 @@ dstalrcon <destination object is already connected to other object> /error
notcon <no connection or disconnection was done> /error notcon <no connection or disconnection was done> /error
notload <loadfile not created> /error notload <loadfile not created> /error
loadtype <loadtype doesn't exist> /error loadtype <loadtype doesn't exist> /error
fileopen <error open file> /error fileopen <open file error> /error
filepos <error positioning in file> /error filepos <error positioning in file> /error
filewrite <error writing to file> /error filewrite <error writing to file> /error
fileread <error reading from file> /error fileread <error reading from file> /error
......
...@@ -385,7 +385,7 @@ pwr_tStatus wb_bck_list::read() { ...@@ -385,7 +385,7 @@ pwr_tStatus wb_bck_list::read() {
f = fopen( m_filename, "rb"); f = fopen( m_filename, "rb");
if ( !f) if ( !f)
return LDH__NOSUCHFILE; return LDH__FILEOPEN;
// Read header // Read header
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#include "co_dcli.h" #include "co_dcli.h"
#include "co_lng.h" #include "co_lng.h"
#include "co_msg.h"
#include "cow_xhelp.h" #include "cow_xhelp.h"
#include "cow_wow.h" #include "cow_wow.h"
#include "wb_ldh.h" #include "wb_ldh.h"
...@@ -123,6 +124,10 @@ void WbBckW::file_selected_cb( void *ctx, char *filename, wow_eFileSelType file_ ...@@ -123,6 +124,10 @@ void WbBckW::file_selected_cb( void *ctx, char *filename, wow_eFileSelType file_
sts = slist->read(); sts = slist->read();
if ( EVEN(sts)) { if ( EVEN(sts)) {
char msg[200];
msg_GetMsg( sts, msg, sizeof(msg));
bckw->wow->DisplayError( "File read error", msg);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment