Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
c62e0bdf
Commit
c62e0bdf
authored
Jan 13, 2016
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb backup, errormessage when bck-file couldn't be opened added
parent
d1707490
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
src/msg/wb/src/wb_ldh_msg.msg
src/msg/wb/src/wb_ldh_msg.msg
+1
-1
wb/lib/wb/src/wb_bck.cpp
wb/lib/wb/src/wb_bck.cpp
+1
-1
wb/lib/wb/src/wb_bckw.cpp
wb/lib/wb/src/wb_bckw.cpp
+5
-0
No files found.
src/msg/wb/src/wb_ldh_msg.msg
View file @
c62e0bdf
...
@@ -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
...
...
wb/lib/wb/src/wb_bck.cpp
View file @
c62e0bdf
...
@@ -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
...
...
wb/lib/wb/src/wb_bckw.cpp
View file @
c62e0bdf
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment