Skip to content

Commit af23b5c

Browse files
authored
Update error message when saving solution to fix lint (#1132)
* Update error message when saving solution * Fixing lint
1 parent 9ca691f commit af23b5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/data-preparation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ end
265265

266266
"""
267267
create_merged_tables!(connection)
268-
268+
269269
Create the internal tables of merged flows and assets time partitions to be used in the computation of the lowest and highest resolution tables.
270270
The inputs tables are the flows table `flow_time_resolution_rep_period` and the assets table `asset_time_resolution_rep_period`.
271271
All merged tables have the same columns: `asset`, `year`, `rep_period`, `time_block_start`, and `time_block_end`.

src/solve-model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function save_solution!(connection, model, variables, constraints; compute_duals
9898
# Check if it's solved
9999
if !JuMP.is_solved_and_feasible(model)
100100
@error(
101-
"The model has a termination status: $JuMP.termination_status(model), with primal status $JuMP.primal_status(model), and dual status $JuMP.dual_status(model)"
101+
"The model has a termination status: $(string(JuMP.termination_status(model))), with primal status $(string(JuMP.primal_status(model))), and dual status $(string(JuMP.dual_status(model)))"
102102
)
103103
return
104104
end

0 commit comments

Comments
 (0)