Skip to content

Commit

Permalink
Adding Error message
Browse files Browse the repository at this point in the history
  • Loading branch information
zablon-oigo committed Jul 27, 2024
1 parent deddb77 commit 774383e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resume/src/component/Resume.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Resume = () => {
}, []);

if (loading) return <h2 className='text-3xl text-white'>Loading....</h2>;
if (error) return <p className='text-3xl text-white'>Error: {error.message}</p>;
if (error) return <p className='text-3xl text-center text-white'>Error: {error.message}</p>;

return (
<div>
Expand Down

0 comments on commit 774383e

Please sign in to comment.