Skip to content

Commit

Permalink
Print error while saving file
Browse files Browse the repository at this point in the history
  • Loading branch information
agusaldasoro committed Jan 20, 2025
1 parent 5879985 commit b231482
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ class SMTLibZ3DbConstraintSolver() : DbConstraintSolver {

return fileName
} catch (e: IOException) {
println("Failed to write SMTLib to file: ${e.message}")
return "error_saving_file_${System.currentTimeMillis()}.smt2"
throw RuntimeException("Failed to write SMTLib to file: ${e.message}")
}
}

Expand Down

0 comments on commit b231482

Please sign in to comment.