Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
37d73b03
Commit
37d73b03
authored
Dec 28, 2010
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix more IO_ERROR() constructor issues
parent
02e1f839
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
sch_dir_lib_source.cpp
new/sch_dir_lib_source.cpp
+1
-1
sch_lib_table.cpp
new/sch_lib_table.cpp
+6
-5
No files found.
new/sch_dir_lib_source.cpp
View file @
37d73b03
...
...
@@ -362,7 +362,7 @@ DIR_LIB_SOURCE::DIR_LIB_SOURCE( const STRING& aDirectoryPath,
if
(
sourceURI
.
size
()
==
0
)
{
throw
(
IO_ERROR
(
"aDirectoryPath cannot be empty"
)
);
throw
(
IO_ERROR
(
STRING
(
"aDirectoryPath cannot be empty"
)
)
);
}
// remove any trailing separator, so we can add it back later without ambiguity
...
...
new/sch_lib_table.cpp
View file @
37d73b03
...
...
@@ -134,12 +134,13 @@ void LIB_TABLE::Parse( SCH_LIB_TABLE_LEXER* in ) throw( IO_ERROR )
// before any fall back.
if
(
!
InsertRow
(
row
)
)
{
char
buf
[
300
]
;
STRING
msg
;
snprintf
(
buf
,
sizeof
(
buf
),
"'%s' is a duplicate logical lib name"
,
row
->
logicalName
.
c_str
()
);
throw
IO_ERROR
(
buf
);
msg
+=
'\''
;
msg
+=
row
->
logicalName
;
msg
+=
'\''
;
msg
+=
" is a duplicate logical lib name"
;
throw
IO_ERROR
(
msg
);
}
}
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