Ifeanyi commited on
Commit
548b5d2
·
verified ·
1 Parent(s): fad50bb

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +11 -2
app.R CHANGED
@@ -150,8 +150,17 @@ output$table <- renderReactable({
150
  },
151
 
152
  error = function(e){
153
- message("An error occurred!")
154
- print(e)
 
 
 
 
 
 
 
 
 
155
  }
156
  )
157
  })
 
150
  },
151
 
152
  error = function(e){
153
+ shinyAlert(
154
+ title = "Error!",
155
+ text = "You can only enter text values",
156
+ closeOnEsc = TRUE,
157
+ closeOnClickOutside = TRUE,
158
+ confirmButtonText = "OK",
159
+ confirmButtonCol = "#9f0be4",
160
+ timer = 30000,
161
+ showCancelButton = FALSE,
162
+ showConfirmButton = TRUE
163
+ )
164
  }
165
  )
166
  })