Skip to content

Commit c8d7f3c

Browse files
committed
Fix missing error message when device global name is not unique
The stringstream err_ss is only used within the function, and the contents must be assigned to err_str which is returned to the caller. This amends #100 Signed-off-by: Peter Colberg <[email protected]>
1 parent 3b9155c commit c8d7f3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/acl_auto_configure.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ bool acl_load_device_def_from_str(const std::string &config_str,
559559
// unique.
560560
err_ss << "Device global name should be unique. " << device_global_name
561561
<< " is repeated.\n";
562+
err_str = err_ss.str();
562563
result = false;
563564
}
564565

0 commit comments

Comments
 (0)